mantine-entity
Version:
A library combining Mantine, TanStack Query, and Mantine React Table for efficient entity management
9 lines (8 loc) • 376 B
TypeScript
import { type MRT_ColumnDef } from "mantine-react-table";
type DataTableProps<T extends Record<string, any>> = {
queryKey: string[];
queryFn: () => Promise<T[]>;
columns: MRT_ColumnDef<T>[];
};
export declare function DataTable<T extends Record<string, any>>({ queryKey, queryFn, columns, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
export {};