import type { ReactNode } from 'react'; export interface RowData { monospace?: boolean; content: string; } export interface TableProps { columns: string[]; columnStyles?: Record; rows: Record[]; className?: string | undefined; } export function Table({ rows, columns, columnStyles, className }: TableProps) { return (
{columns.map((column) => ( ))} {rows.map((row, i) => ( {Object.entries(row).map(([colName, val]) => ( ))} ))}
{column}
{val}
); }