MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / DataTable

Function DataTable

app/components/DataTable.tsx:51–73  ·  view source on GitHub ↗
({ rows })

Source from the content-addressed store, hash-verified

49};
50
51export const DataTable: FunctionComponent<DataTableProps> = ({ rows }) => {
52 return (
53 <div>
54 <Title className="text-slate-700 dark:text-slate-400 mb-2">
55 Properties
56 </Title>
57 <table className="w-full table-auto border-y-[0.5px] border-slate-300 transition dark:border-slate-700">
58 <tbody className="divide-solid divide-y divide-slate-300 w-full transition dark:divide-slate-700">
59 {rows.map((row) => {
60 return (
61 <DataRow
62 key={row.key}
63 title={row.key}
64 value={row.value}
65 icon={row.icon}
66 />
67 );
68 })}
69 </tbody>
70 </table>
71 </div>
72 );
73};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected