import Button from "@components/Button/Button"; import { DatePicker } from "@components/DatePicker/DatePicker"; import { Dialog, DialogActions, DialogContent, DialogTitle, Typography } from "@mui/material"; import React from "react"; import './custom-date-rang-popup.scss'; export interface CustomDateRangeProps { id: string; keepMounted: boolean; value: string; open: boolean; onClose: () => void; startDate: string; endDate: string; onChangeDate: (startDate: any, endDate: any) => void; } const CustomDateRangePopup = (props: CustomDateRangeProps) => { const { onClose, value: valueProp, open, startDate, endDate, onChangeDate, ...other } = props; const [selectedStartDate, setSelectedStartDate] = React.useState(); const [selectedEndDate, setSelectedEndDate] = React.useState(); const handleCancel = () => { onClose(); }; const handleStateDate = (date: any) => { setSelectedStartDate(date); } const handleEndDate = (date: any) => { setSelectedEndDate(date); } const handleOnClickOk = () => { onChangeDate(selectedStartDate, selectedEndDate); handleCancel(); } return (
Custom Range
Start Date
End Date
) } export default CustomDateRangePopup