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"; import AddBtn from "../../components/AddBtn"; import UpdateBtn from "../../components/UpdateBtn"; 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.address}
))}
); } export default Relatives;