@premieroctet/next-admin
Version:
Next-Admin provides a customizable and turnkey admin dashboard for applications built with Next.js and powered by the Prisma ORM. It aims to simplify the development process by providing a turnkey admin system that can be easily integrated into your proje
16 lines • 716 B
TypeScript
import { Enumeration } from "../types";
type UseSearchPaginatedResourceParams = {
fieldName: string;
initialOptions?: Enumeration[];
};
declare const useSearchPaginatedResource: ({ fieldName, initialOptions, }: UseSearchPaginatedResourceParams) => {
allOptions: Enumeration[];
setAllOptions: import("react").Dispatch<import("react").SetStateAction<Enumeration[]>>;
runSearch: (query: string, resetOptions?: boolean) => Promise<void>;
searchPage: import("react").RefObject<number>;
totalSearchedItems: import("react").RefObject<number>;
isPending: boolean;
hasNextPage: boolean;
};
export default useSearchPaginatedResource;
//# sourceMappingURL=useSearchPaginatedResource.d.ts.map