-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,5 @@ | ||
import Link from "next/link" | ||
import React from "react" | ||
import { buttonVariants } from "@/components/ui/button" | ||
import { getDictionary } from "@/lib/langs" | ||
import { Locale } from "i18n-config" | ||
import { notFound } from "next/navigation" | ||
|
||
export default async function Page404({ | ||
params: { lang }, | ||
}: { | ||
params: { | ||
lang: Locale | ||
} | ||
}) { | ||
const dictionary = await getDictionary(lang) | ||
|
||
return ( | ||
<main className="container flex min-h-screen flex-1 flex-col items-center justify-center gap-3"> | ||
<h1 className="text-4xl font-bold">{dictionary.notFound}</h1> | ||
<Link href="/" className={buttonVariants({ variant: "ghost" })}> | ||
{dictionary.home} | ||
</Link> | ||
</main> | ||
) | ||
export default function Page404MatchAll() { | ||
notFound() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Link from "next/link" | ||
import React from "react" | ||
import { buttonVariants } from "@/components/ui/button" | ||
|
||
export default async function Page404MatchAll() { | ||
return ( | ||
<main className="container flex min-h-screen flex-1 flex-col items-center justify-center gap-3"> | ||
<h1 className="text-4xl font-bold">Not found</h1> | ||
<Link href="/" className={buttonVariants({ variant: "ghost" })}> | ||
Home | ||
</Link> | ||
</main> | ||
) | ||
} |