()
| 55 | |
| 56 | function DataTable(props: { rows: Record<string, unknown>[] }) { |
| 57 | const columns = () => { |
| 58 | const cols = new Set<string>() |
| 59 | for (const row of props.rows) { |
| 60 | for (const key of Object.keys(row)) cols.add(key) |
| 61 | } |
| 62 | return [...cols] |
| 63 | } |
| 64 | |
| 65 | return ( |
| 66 | <Show when={props.rows.length > 0} fallback={<div data-empty>(no data)</div>}> |
no test coverage detected