mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 16:19:43 +08:00
27 lines
636 B
TypeScript
27 lines
636 B
TypeScript
import { NotFoundTitle, PageContainer } from './styles';
|
|
import { useTranslation } from '@affine/i18n';
|
|
import { Button } from '@/ui/button';
|
|
import { useRouter } from 'next/router';
|
|
export const NotfoundPage = () => {
|
|
const { t } = useTranslation();
|
|
const router = useRouter();
|
|
return (
|
|
<PageContainer>
|
|
<NotFoundTitle>
|
|
{t('404 - Page Not Found')}
|
|
<p>
|
|
<Button
|
|
onClick={() => {
|
|
router.push('/workspace');
|
|
}}
|
|
>
|
|
Back Home
|
|
</Button>
|
|
</p>
|
|
</NotFoundTitle>
|
|
</PageContainer>
|
|
);
|
|
};
|
|
|
|
export default NotfoundPage;
|