import TableCell from "@mui/material/TableCell"; import TableRow from "@mui/material/TableRow"; import { isArray, startCase } from "lodash"; import React, { FC } from "react"; import ClaimValue from "./ClaimValue"; export type ClaimRowProps = { claimKey: string; claimValue: unknown; }; export const ClaimRow: FC = ({ claimKey, claimValue }) => { return ( {startCase(claimKey)} {isArray(claimValue) ? ( claimValue?.map((v, i) => ( {i > 0 ?
: <>}
)) ) : ( )}
); }; export default ClaimRow;