mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-17 14:10:14 +02:00
Begin normalizing list stores
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user