Files
feishin/src/renderer/features/artists/context/album-artist-list-context.tsx
T
2023-03-05 21:02:05 -08:00

12 lines
343 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;
};