mirror of
https://github.com/tiennm99/bsk.git
synced 2026-10-03 09:13:12 +00:00
- 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
22 lines
817 B
React
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>
|
|
);
|
|
}
|