wealth/apps/bear/src/app/not-found.tsx

38 lines
1.3 KiB
TypeScript

import { FlexBox } from '@lumina/island/atoms/flex-box';
import { Element } from '@lumina/island/primitives/element';
import { StatusEmptyState } from '@lumina/market/app/error-boundaries';
import { DesktopHeader } from '@lumina/market/app/navigation';
import type { Metadata } from 'next';
import { Suspense } from 'react';
export const metadata: Metadata = { robots: { index: false } };
/**
* A missing page or post, outside every route group (G-4d): the header over the calm state in the
* 640 column, with the way home.
*/
export default function NotFound() {
return (
<FlexBox direction="flex-col" className="min-h-dvh bg-bg-page">
{/* Prerendered outside every route group: the bar reads the address (its login link keeps
the page), so it waits for the browser behind a same-size frame. */}
<Suspense
fallback={
<Element className="min-h-16 border-b border-border-subtle bg-surface" />
}
>
<DesktopHeader />
</Suspense>
<FlexBox
tag="main"
justifyContent="justify-center"
className="flex-1 px-8 py-10"
>
<FlexBox direction="flex-col" className="w-full max-w-content">
<StatusEmptyState variant="not-found" size="page" />
</FlexBox>
</FlexBox>
</FlexBox>
);
}