wealth/apps/bull/src/app/(main)/channels/[username]/not-found.tsx

28 lines
988 B
TypeScript
Raw Normal View History

import { FlexBox } from '@lumina/island/atoms/flex-box';
import {
ChannelNotFound,
ChannelNotFoundTopBar,
} from '@lumina/market/app/screens/(main)/channels/[username]/organisms/channel-not-found';
import type { Metadata } from 'next';
import { displayUrl } from '../../../../configs';
import { i18n } from '../../../../i18n';
export const metadata: Metadata = { robots: { index: false } };
/**
* No channel at this address, or not any more. Its creator, before approval, sees their own tab
* here instead (C6 ۱.۲), under their tab bar; both are decided in the browser. The main is flush
* for that tab's banner strip and header; the message keeps its own inset.
*/
export default function ChannelNotFoundPage() {
return (
<>
<ChannelNotFoundTopBar title={i18n.t('channel:top-bar.channel')} />
<FlexBox tag="main" direction="flex-col" className="flex-1">
<ChannelNotFound layout="mobile" siteHost={displayUrl('')} />
</FlexBox>
</>
);
}