gitscope
← marzneshin / v0.5.1 / dashboard/src/components/info-table/table-row-with-cell.tsx
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/components/info-table/table-row-with-cell.tsx · TypeScript
Blame Raw
 1import { TableCell, TableRow } from "@marzneshin/components";
 2import { FC } from "react";
 3
 4interface TableRowWithCellProps {
 5    label: string | JSX.Element;
 6    value?: null | string | number | JSX.Element;
 7}
 8
 9export const TableRowWithCell: FC<TableRowWithCellProps> = ({ label, value }) => (
10    <TableRow>
11        <TableCell>{label}</TableCell>
12        <TableCell>{value}</TableCell>
13    </TableRow>
14);
15