add itemCount to list context

This commit is contained in:
jeffvli
2025-10-11 03:33:12 -07:00
parent f90a11e9cf
commit 51b1945957
3 changed files with 24 additions and 2 deletions
+2 -2
View File
@@ -1,13 +1,13 @@
import { createContext, useContext } from 'react';
import { ListKey } from '/@/renderer/store';
import { Play } from '/@/shared/types/types';
interface ListContextProps {
customFilters?: Record<string, unknown>;
handlePlay?: (args: { initialSongId?: string; playType: Play }) => void;
id?: string;
itemCount?: number;
pageKey: ListKey;
setItemCount?: (itemCount: number) => void;
}
export const ListContext = createContext<ListContextProps>({