import { getServerI18n } from "@/i18n";
import { Stack, Typography, Link } from "@mui/material";
import NextLink from "next/link";

export default async function NotFound() {
  const { t } = await getServerI18n("tasks", "common");

  return (
    <Stack spacing={2}>
      <Typography variant="h4">{t("Not Found")}</Typography>
      <Typography variant="body1">{t("The task template was not found!")}</Typography>
      <Link href="/projects" component={NextLink} variant="body2">
        {t("Return to all task templates")}
      </Link>
    </Stack>
  );
}
