export interface TableRow { title: string value: string } export interface TableProps { rows: TableRow[] } export const Table: React.FC = props => { const { rows } = props return ( <>
{rows.map((row, index) => { return ( ) })}
{row.title} {row.value}
) }