@intersect.mbo/govtool-delegation-pillar
Version:
Delegation Pillar of the GovTool project
21 lines (20 loc) • 871 B
TypeScript
import { Dispatch, SetStateAction, PropsWithChildren } from 'react';
interface DataActionsBarContextType {
chosenFilters: string[];
chosenFiltersLength: number;
chosenSorting: string;
closeFilters: () => void;
closeSorts: () => void;
debouncedSearchText: string;
filtersOpen: boolean;
searchText: string;
setChosenFilters: Dispatch<SetStateAction<string[]>>;
setChosenSorting: Dispatch<SetStateAction<string>>;
setFiltersOpen: Dispatch<SetStateAction<boolean>>;
setSearchText: Dispatch<SetStateAction<string>>;
setSortOpen: Dispatch<SetStateAction<boolean>>;
sortOpen: boolean;
}
declare const DataActionsBarProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
declare function useDataActionsBar(): DataActionsBarContextType;
export { DataActionsBarProvider, useDataActionsBar };