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