mantine-entity
Version:
A library combining Mantine, TanStack Query, and Mantine React Table for efficient entity management
25 lines (24 loc) • 954 B
TypeScript
import React from "react";
import { ActionQuery, RequestParams, RootConfig } from "./model";
import { MRT_RowData } from "mantine-react-table";
export type ActionButtonProps = {
currentPermissions: any;
LinkComponent: any;
path?: string;
appMainPath: string;
id?: string;
actionQuery?: ActionQuery<any>;
rootConfig?: RootConfig;
data?: any;
};
export declare const CreateButton: React.FC<ActionButtonProps>;
export declare const UpdateButton: React.FC<ActionButtonProps>;
export declare const ViewButton: React.FC<ActionButtonProps>;
export declare const BackButton: React.FC<ActionButtonProps>;
export declare const DeleteButton: <T extends MRT_RowData>({ actionQuery, rootConfig, data, currentPermissions, requestParams }: {
actionQuery: ActionQuery<any>;
rootConfig?: RootConfig;
data?: T;
currentPermissions: any;
requestParams: RequestParams;
}) => import("react/jsx-runtime").JSX.Element | null;