UNPKG

@pagamio/frontend-commons-lib

Version:

Pagamio library for Frontend reusable components like the form engine and table container

13 lines (12 loc) 542 B
import type { MRT_ColumnDef } from 'mantine-react-table'; import type { IconType } from 'react-icons'; interface ActionsColumnProps<T> { buttonTitle: string; icon?: IconType; label: string; showIconButton?: boolean; renderContent?: (data: T) => JSX.Element; handleOnclickButton?: (data: T) => void; } export declare const createTableActionsColumn: <T extends Record<string, any>>({ buttonTitle, icon, label, showIconButton, renderContent, handleOnclickButton, }: ActionsColumnProps<T>) => MRT_ColumnDef<T>; export {};