import useIsMobile from "@/app/utils/useIsMobile"; import React from "react"; import FullscreenModal from "../FullscreenModal"; import { Box, Card, CardContent, Modal, SxProps, Typography, } from "@mui/material"; import { useTranslation } from "react-i18next"; import TimesheetAmendment, { Props as TimesheetAmendmentProps, } from "./TimesheetAmendment"; const modalSx: SxProps = { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", width: { xs: "calc(100% - 2rem)", sm: "90%" }, maxHeight: "90%", maxWidth: 1400, }; interface Props extends TimesheetAmendmentProps { open: boolean; onClose: () => void; isSaturdayWorker: boolean } export const TimesheetAmendmentModal: React.FC = ({ open, onClose, leaveTypes, teamLeaves, teamTimesheets, companyHolidays, allProjects, miscTasks, isSaturdayWorker }) => { const { t } = useTranslation("home"); const isMobile = useIsMobile(); const title = t("Timesheet Amendments"); const content = ( ); return isMobile ? ( {title} {content} ) : ( {title} {content} ); };