import { Cell, flexRender } from '@tanstack/react-table'; import clsx from 'clsx'; interface Props = Record> { cells: Cell[]; className?: string; onClick?: () => void; } export function TableRow< D extends Record = Record >({ cells, className, onClick }: Props) { return ( {cells.map((cell) => ( {flexRender(cell.column.columnDef.cell, cell.getContext())} ))} ); }