(props: {columns: {id: Key; name: string}[]; rows: Record<string, string>[]})
| 70 | }); |
| 71 | |
| 72 | function Table(props: {columns: {id: Key; name: string}[]; rows: Record<string, string>[]}) { |
| 73 | let {columns, rows, ...args} = props; |
| 74 | return ( |
| 75 | <ResizingTable {...args}> |
| 76 | <TableHeader columns={columns}> |
| 77 | {column => <Column {...column}>{column.name}</Column>} |
| 78 | </TableHeader> |
| 79 | <TableBody items={rows}> |
| 80 | {item => <Row>{columnKey => <Cell>{item[columnKey]}</Cell>}</Row>} |
| 81 | </TableBody> |
| 82 | </ResizingTable> |
| 83 | ); |
| 84 | } |
nothing calls this directly
no outgoing calls
no test coverage detected