// @mui import { DatePicker } from '@mui/x-date-pickers/DatePicker'; import { DateCalendar } from '@mui/x-date-pickers/DateCalendar'; import Paper from '@mui/material/Paper'; import Stack from '@mui/material/Stack'; import Button from '@mui/material/Button'; import Dialog from '@mui/material/Dialog'; import DialogTitle from '@mui/material/DialogTitle'; import DialogActions from '@mui/material/DialogActions'; import DialogContent from '@mui/material/DialogContent'; import FormHelperText from '@mui/material/FormHelperText'; // hooks import { useResponsive } from 'src/hooks/use-responsive'; // import { DateRangePickerProps } from './types'; // ---------------------------------------------------------------------- export default function CustomDateRangePicker({ title = 'Select date range', variant = 'input', // startDate, endDate, // onChangeStartDate, onChangeEndDate, // open, onClose, // error, }: DateRangePickerProps) { const mdUp = useResponsive('up', 'md'); const isCalendarView = variant === 'calendar'; return ( {title} {isCalendarView ? ( <> ) : ( <> )} {error && ( End date must be later than start date )} ); }