import { createContext, Dispatch, SetStateAction, use } from 'react'; export type SelectPhotosState = { canCurrentPageSelectPhotos?: boolean isSelectingPhotos?: boolean isSelectingAllPhotos?: boolean toggleIsSelectingAllPhotos?: () => void startSelectingPhotos?: () => void stopSelectingPhotos?: () => void selectedPhotoIds?: string[] togglePhotoSelection?: (photoId: string) => void isPerformingSelectEdit?: boolean setIsPerformingSelectEdit?: Dispatch> }; export const SelectPhotosContext = createContext({}); export const useSelectPhotosState = () => use(SelectPhotosContext);