import CustomTable from "@/app/component/CustomTable"; import TextLoading from "@/app/component/loading/Text"; import EditB from "@/components/icons/EditB"; import TrashB from "@/components/icons/TrashB"; import { Button, TableCell, TableRow, Tooltip } from "@mui/material"; import Head from "../../components/Head"; function Relatives({ data }) { const tableHead = ["ردیف", "نام", "نسبت", "شماره تماس", "ایمیل", "آدرس", ""]; const centerTable = [0]; return (
{data.relatives.map((row, idx) => ( {idx + 1} {row.name} {row.relation} {`${row.contact.phone?.replace("+", "")}+`} {row.contact.email}
{(row.contact.address || "").substring(0, 15)} {row.contact.address?.length > 15 ? "…" : ""}
))}
); } export default Relatives;