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("schedule", "common");

  return (
    <Stack spacing={2}>
      <Typography variant="h4">{t("Not Found")}</Typography>
      <Typography variant="body1">
        {t("The production schedule detail page was not found!")}
      </Typography>
      <Link href="/settings/scheduling" component={NextLink} variant="body2">
        {t("Return to all scheduling")}
      </Link>
    </Stack>
  );
}
