import { Box, Button, Dialog, DialogActions, DialogContent, DialogTitle, Stack, Typography, styled, } from "@mui/material"; import PastEntryCalendar, { Props as PastEntryCalendarProps, } from "./PastEntryCalendar"; import { useCallback, useState } from "react"; import { useTranslation } from "react-i18next"; import { ArrowBack } from "@mui/icons-material"; interface Props extends Omit { open: boolean; handleClose: () => void; } const Indicator = styled(Box)(() => ({ borderRadius: "50%", width: "1rem", height: "1rem", })); const PastEntryCalendarModal: React.FC = ({ handleClose, open, timesheet, leaves, }) => { const { t } = useTranslation("home"); const [selectedDate, setSelectedDate] = useState(""); const clearDate = useCallback(() => { setSelectedDate(""); }, []); const onClose = useCallback(() => { handleClose(); }, [handleClose]); return ( {t("Past Entries")} {selectedDate ? ( {selectedDate} ) : ( {t("Has timesheet entry")} {t("Has leave entry")} {t("Has both timesheet and leave entry")} )} {selectedDate && ( )} ); }; export default PastEntryCalendarModal;