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 } from "@mui/material"; import Head from "../../components/Head"; import ModalAddMedications from "./modal"; import { useState } from "react"; function Medications({ data }) { const tableHead = ["ردیف", "نام دارو", "دوز مصرفی", "تعداد و زمان مصرف", ""]; const centerTable = [0]; const [open, setOpen] = useState(false); return (