We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 875e63d commit bc86207Copy full SHA for bc86207
apps/site/app/[locale]/not-found.tsx
@@ -1,15 +1,15 @@
1
-'use client';
+'use server';
2
3
import { ArrowRightIcon } from '@heroicons/react/24/solid';
4
-import { useTranslations } from 'next-intl';
+import { getTranslations } from 'next-intl/server';
5
import type { FC } from 'react';
6
7
import Button from '#site/components/Common/Button';
8
import Turtle from '#site/components/Common/Turtle';
9
import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop';
10
11
-const NotFoundPage: FC = () => {
12
- const t = useTranslations();
+const NotFoundPage: FC = async () => {
+ const t = await getTranslations();
13
14
return (
15
<GlowingBackdropLayout kind="default">
0 commit comments