import { Box, Button, Modal, Typography, useMediaQuery, useTheme, } from "@mui/material"; import { FC, useState } from "react"; import { DatePicker } from "@mui/x-date-pickers"; import CustomCheckbox from "@ui_kit/CustomCheckbox"; import CalendarIcon from "@icons/CalendarIcon"; import moment from "moment"; import { answerResultListExport } from "@root/results/actions"; interface Iprops { open: boolean; editQuizId: string; handleClose: () => void; } export const ExportContactsModal: FC = ({ open, handleClose, editQuizId, }) => { const theme = useTheme(); const isMobile = useMediaQuery(theme.breakpoints.down(650)); const [fromDate, setFromDate] = useState(""); const [toDate, setToDate] = useState(""); const style = { position: "absolute" as "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", width: "100%", maxWidth: isMobile ? 343 : 620, bgcolor: "background.paper", boxShadow: 24, borderRadius: "12px", }; return ( Настройте фильтры отображения c { setFromDate(date); }} slots={{ openPickerIcon: () => , }} slotProps={{ openPickerButton: { sx: { p: 0, }, "data-cy": "open-datepicker", }, }} sx={{ p: "10px", "& .MuiInputBase-root": { maxWidth: "250px", width: "100%", backgroundColor: "#F2F3F7", borderRadius: "10px", pr: "31px", "& input": { py: "11px", pl: "13px", lineHeight: "19px", }, "& fieldset": { borderColor: "#9A9AAF", }, }, }} /> до { setToDate(date); }} slots={{ openPickerIcon: () => , }} slotProps={{ openPickerButton: { sx: { p: 0, }, "data-cy": "open-datepicker", }, }} sx={{ p: "10px", "& .MuiInputBase-root": { maxWidth: "250px", width: "100%", backgroundColor: "#F2F3F7", borderRadius: "10px", pr: "31px", "& input": { py: "11px", pl: "13px", lineHeight: "19px", }, "& fieldset": { borderColor: "#9A9AAF", }, }, }} /> {/**/} {/* */} {/* */} {/* */} {/**/} ); };