import React from "react"; import { AdapterDateFnsJalali } from "@mui/x-date-pickers/AdapterDateFnsJalali"; import { faIR } from "@mui/x-date-pickers/locales"; import { LocalizationProvider, MobileDatePicker } from "@mui/x-date-pickers"; import { IconButton, InputAdornment } from "@mui/material"; import ClearIcon from "@mui/icons-material/Clear"; const CustomDatePicker = ({ dateValue, setDateValue, placeholder = "انتخاب تاریخ", size = "small" }) => { const handleDateChange = (newValue) => { setDateValue(newValue); }; return ( { event.stopPropagation(); setDateValue(null); }} sx={{ color: "#bfbfbf", "&:hover": { backgroundColor: "rgba(189, 189, 189, 0.1)", color: "#363434", }, }} > ), }, }, }} > ); }; export default CustomDatePicker;