UNPKG

website-templates

Version:

A React component for an Website Templates styled with Tailwind CSS

18 lines (17 loc) 407 B
interface Pagination { totalItems: number; totalPages: number; currentPage: number; pageSize: number; } interface UseFetchDataProps { url: string; params?: Record<string, any>; } export declare function useFetchData<T = any>({ url, params }: UseFetchDataProps): { data: T | undefined; pagination: Pagination | undefined; isLoading: boolean; error: any; }; export {};