import { Button } from "@mui/material"; // Icon import CloseModalD from "@/components/icons/CloseModalD"; import AutoCompleteSelect from "@/app/component/element/AutoCompleteSelect"; import ArrowLeftM from "@/components/icons/ArrowLeftM"; function Content({ state, states, selected, updateData, handleClose, filteredCities, handleSearch, }) { const citySelected = selected.city; const listboxProps = { style: { maxHeight: 200, overflow: "auto", }, }; const handleFilter = () => { const city = selected && citySelected && filteredCities.find((item) => item.name === citySelected); const current = new URLSearchParams(window.location.search); current.set("province", city.id); const newUrl = `${window.location.pathname}?${current.toString()}`; window.history.replaceState({}, "", newUrl); handleSearch && handleSearch(""); handleClose(); }; const valState = selected && citySelected && filteredCities.find((item) => item.name === citySelected) && citySelected; return (

شهر یا استان مورد نظر را انتخاب نمایید:

); } export default Content;