Files
feishin/src/renderer/features/artists/context/album-artist-list-context.tsx
T
2023-07-01 19:14:12 -07:00

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;
};