import Box from "@mui/material/Box"; import Stack from "@mui/material/Stack"; import OutputAnimation from "@/assets/Animations/output.gif"; import DarkmodeOutput from "@/assets/Animations/darkmodeOutput.gif"; import Typography from "@mui/material/Typography"; import { BulletPointCheck } from "@/Components/v2/DesignElements"; import { Button } from "@/Components/v2/Inputs"; import { useNavigate } from "react-router"; import { useMediaQuery } from "@mui/material"; import { useTheme } from "@mui/material/styles"; import { useSelector } from "react-redux"; import type { BoxProps } from "@mui/material"; interface BaseFallbackProps extends BoxProps { children: React.ReactNode; } export const BaseFallback: React.FC = ({ children, ...props }) => { const theme = useTheme(); const mode = useSelector((state: any) => state.ui.mode); const isSmall = useMediaQuery(theme.breakpoints.down("md")); return ( {children} ); }; export const ErrorFallback = ({ title, subtitle, }: { title: string; subtitle: string; }) => { const theme = useTheme(); return ( {title} {subtitle} ); }; export const EmptyFallback = ({ page, title, bullets, actionButtonText, actionLink, }: { page: string; title: string; bullets: any; actionButtonText: string; actionLink: string; }) => { const theme = useTheme(); const navigate = useNavigate(); return ( {title} {bullets?.map((bullet: string, index: number) => ( ))} ); };