import { ComponentProps } from 'react'; import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, } from '@/common/components/atoms/Table'; import { ColumnDef, RowData, TableOptions } from '@tanstack/react-table'; export interface ITableCellProps { // Props to be used explicitly by the cell inside 'value'. Props outside 'value' to be used by the blocks API. value: { caption?: ComponentProps['children']; columns: Array>; data: TData[]; // Component props props?: { table?: ComponentProps; header?: ComponentProps; head?: ComponentProps; row?: ComponentProps; body?: ComponentProps; cell?: ComponentProps; caption?: ComponentProps; }; // react-table options options?: Omit, 'getCoreRowModel' | 'data' | 'columns'>; }; }