import type { TableLayoutProps } from "src/components"; function TableHeader(props: TableLayoutProps) { const { tableInstance } = props; const headerGroups = tableInstance.getHeaderGroups(); return ( {headerGroups.map((headerGroup: any) => ( {headerGroup.headers.map((header: any) => { const { column } = header; const { className } = (column.columnDef.meta as any) ?? {}; return ( {typeof column.columnDef.header === "string" ? `${column.columnDef.header}` : null} ); })} ))} ); } export { TableHeader };