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