import { createContext, useContext } from 'react'; import { ListKey } from '/@/renderer/store'; import { Play } from '/@/shared/types/types'; interface ListContextProps { customFilters?: Record; handlePlay?: (args: { initialSongId?: string; playType: Play }) => void; id?: string; pageKey: ListKey; } export const ListContext = createContext({ pageKey: '', }); export const useListContext = () => { const ctxValue = useContext(ListContext); return ctxValue; };