UNPKG

@intersect.mbo/govtool-delegation-pillar

Version:
21 lines (20 loc) 871 B
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 };