pagamio-frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
17 lines (16 loc) • 628 B
TypeScript
import { type MRT_ColumnDef } from 'mantine-react-table';
import React from 'react';
export type ExtraOption = {
value: string;
label: React.ReactNode;
onClick: () => void;
};
type ExportDropdownProps<T extends Record<string, any>> = {
data: T[];
columns: MRT_ColumnDef<T>[];
containerClassName?: string;
buttonClassName?: string;
extraOptions?: ExtraOption[];
};
declare const ExportDropdown: <T extends Record<string, any>>({ data, columns, containerClassName, buttonClassName, extraOptions, }: ExportDropdownProps<T>) => import("react/jsx-runtime").JSX.Element;
export default ExportDropdown;