import CustomTable from "@/app/component/CustomTable"; import Head from "@/components/dashboard/userAccount/components/Head"; import { useState } from "react"; import ItemSurgeries from "./ItemSurgeries"; import ModalAddSurgeries from "./modal"; function Surgeries({ data, changeData, loading, updateData }) { const { other } = data; const { surgeries } = other && other[0]; const tableHead = [ "ردیف", "نوع جراحی", "نام بیمارستان", "سال انجام جراحی", "", ]; const centerTable = [0, 3]; const [open, setOpen] = useState(false); return (
{surgeries.length ? ( {surgeries.map((row, idx) => ( ))} ) : (

هیچ جراحی وجود ندارد!

)}
); } export default Surgeries;