import { useI18n } from '@affine/i18n'; import { SignOutIcon } from '@blocksuite/icons/rc'; import { Avatar } from '../../ui/avatar'; import { Button, IconButton } from '../../ui/button'; import { AffineOtherPageLayout } from '../affine-other-page-layout'; import type { User } from '../auth-components'; import { NotFoundPattern } from './not-found-pattern'; import { largeButtonEffect, notFoundPageContainer, wrapper, } from './styles.css'; export interface NotFoundPageProps { user?: User | null; signInComponent?: JSX.Element; onBack: () => void; onSignOut: () => void; } export const NoPermissionOrNotFound = ({ user, onBack, onSignOut, signInComponent, }: NotFoundPageProps) => { const t = useI18n(); return (
{user ? ( <>

{t['404.hint']()}

{user.email}
) : ( signInComponent )}
); }; export const NotFoundPage = ({ user, onBack, onSignOut, }: NotFoundPageProps) => { const t = useI18n(); return (

{t['404.hint']()}

{user ? (
{user.email}
) : null}
); };