({ rows })
| 49 | }; |
| 50 | |
| 51 | export 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected