import { EmptyState, Table, TableCell, TableHead, TableRow } from './ui'; export function EntityTable(props: { columns: string[]; empty: string; rows: Array>; }) { return ( {props.columns.map((column) => ( {column} ))} {props.rows.map((row, index) => ( {row.map((cell, cellIndex) => ( {cell} ))} ))} {!props.rows.length && }
); }