mantine-entity
Version:
A library combining Mantine, TanStack Query, and Mantine React Table for efficient entity management
15 lines (14 loc) • 710 B
TypeScript
import { MRT_ColumnDef, MRT_RowData } from "mantine-react-table";
import { Dispatch, SetStateAction } from "react";
import { FieldPath } from "react-hook-form";
import { Collection } from "../../models/collection-query";
type TableWithCollectionQueryProps<T extends MRT_RowData> = {
defaultWhere?: Collection<FieldPath<T>>["where"];
data: T[];
columns: MRT_ColumnDef<T, unknown>[];
isLoading: boolean;
rowCount?: number;
setCollectionQuery: Dispatch<SetStateAction<Collection<FieldPath<T>>>>;
};
declare const TableWithCollectionQuery: <T extends MRT_RowData>(props: TableWithCollectionQueryProps<T>) => import("react/jsx-runtime").JSX.Element;
export default TableWithCollectionQuery;