import NotFoundSvg from "@/assets/Images/sushi_404.svg"; import { Button } from "@/Components/v2/inputs"; import Box from "@mui/material/Box"; import Stack from "@mui/material/Stack"; import Typography from "@mui/material/Typography"; import { useNavigate } from "react-router-dom"; import { useTheme } from "@mui/material"; import { useTranslation } from "react-i18next"; interface NotFoundProps { title?: string; desc?: string; } const NotFoundPage = ({ title, desc }: NotFoundProps) => { const navigate = useNavigate(); const theme = useTheme(); const { t } = useTranslation(); if (!title || title === "") { title = t("pages.notFound.title"); } if (!desc || desc === "") { desc = t("pages.notFound.subtitle"); } return ( {title} {desc} ); }; export default NotFoundPage;