mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
13 lines
326 B
TypeScript
13 lines
326 B
TypeScript
import { createContext, useContext } from 'react';
|
|
|
|
import { ListKey } from '/@/renderer/store';
|
|
|
|
export const AlbumListContext = createContext<{ id?: string; pageKey: ListKey }>({
|
|
pageKey: 'album',
|
|
});
|
|
|
|
export const useAlbumListContext = () => {
|
|
const ctxValue = useContext(AlbumListContext);
|
|
return ctxValue;
|
|
};
|