import { Button, IconButton, TextField, Tooltip } from "@mui/material"; import EditIcon from "@mui/icons-material/Edit"; import { useDispatch } from "react-redux"; import { CLOSE_MODAL, OPEN_MODAL } from "../../../../lib/redux/slices/appSlice"; import { useContext, useState } from "react"; import { cityEditHatchingQuantityService } from "../../services/city-edit-hatching-quantity"; import { AppContext } from "../../../../contexts/AppContext"; // import { cityGetHatchings } from "../../services/city-get-hatchings"; // import { cityGetHatchingsByAge } from "../../services/city-get-hatchings-by-age"; import { getRoleFromUrl } from "../../../../utils/getRoleFromUrl"; export const CityEditHatchingQuantity = ({ quantity, hatchingKey, selectedAge1, selectedAge2, updateTable, }) => { const dispatch = useDispatch(); return ( { dispatch( OPEN_MODAL({ title: "ویرایش تعداد جوجه ریزی", content: ( ), }) ); }} > ); }; const ModalContent = ({ quantity, hatchingKey, selectedAge1, selectedAge2, updateTable, }) => { const dispatch = useDispatch(); const [openNotif] = useContext(AppContext); const [value, setValue] = useState(quantity); const handleChange = (event) => { setValue(event.target.value); }; return ( <> ); };