import type { Table as ReactTable } from "@tanstack/react-table"; import { TableBody } from "./TableBody"; import { TableHeader } from "./TableHeader"; interface TableLayoutProps { tableInstance: ReactTable; emptyState?: React.ReactNode; extraStyles?: { row: (rowData: TFields) => any | undefined; }; } function TableLayout(props: TableLayoutProps) { const hasRows = props.tableInstance.getRowModel().rows.length > 0; return (
{hasRows ? : null}
); } export { TableLayout, type TableLayoutProps };