mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 04:20:07 +02:00
add itemCount to list context
This commit is contained in:
@@ -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>({
|
||||
|
||||
Reference in New Issue
Block a user