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