import Box from "@mui/material/Box"; import Stack from "@mui/material/Stack"; import SkeletonCard from "@/components/design-elements/SkeletonCard"; import Typography from "@mui/material/Typography"; import { BulletPointCheck } from "@/components/design-elements"; import { Button } from "@/components/inputs"; import { useNavigate } from "react-router"; import useMediaQuery from "@mui/material/useMediaQuery"; import { useTheme } from "@mui/material/styles"; import type { StackProps } from "@mui/material/Stack"; interface BaseFallbackProps extends StackProps { children: React.ReactNode; } export const BaseFallback: React.FC = ({ children, ...props }) => { const theme = useTheme(); 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 = ({ title, bullets, actionButtonText, actionLink, }: { title: string; bullets: any; actionButtonText: string; actionLink: string; }) => { const theme = useTheme(); const navigate = useNavigate(); return ( {title} {bullets?.map((bullet: string) => ( ))} ); }; export const EmptyMonitorFallback = ({ 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) => ( ))} ); };