Files
bsk/app/not-found.jsx
tiennm99 b47d8fc3d1 refactor: convert TypeScript sources to JavaScript with JSDoc types
- app/, components/, lib/, i18n/, tests/, proxy renamed via git mv
- types carried into JSDoc: @template generics, @typedef aliases,
  /** @type */ casts where TS had as-casts or non-null assertions
- role tuple keeps its const assertion; the db-enum drift guard now
  checks the tuple values against the generated enum type
- use client/use server directives and server-only imports preserved
- prettier-formatted; vitest suite unchanged
2026-08-17 23:12:26 +07:00

22 lines
817 B
React

import Link from "next/link";
import { routing } from "@/i18n/routing";
// Outside-locale fallback (URL didn't match any locale segment). Renders
// without locale context, so messages are hardcoded in both languages.
/** Root 404 page outside the locale segment. @returns {import("react").JSX.Element} */
export default function GlobalNotFound() {
return (
<html lang={routing.defaultLocale}>
<body>
<main className="mx-auto flex min-h-screen max-w-2xl flex-col justify-center gap-4 px-6 py-16">
<h1 className="text-2xl font-semibold">404</h1>
<p>Không tìm thấy trang. / Page not found.</p>
<Link href={`/${routing.defaultLocale}`} className="underline">
Về trang chủ / Go home
</Link>
</main>
</body>
</html>
);
}