35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { SkeletonPreset } from '@lumina/island/organisms/skeleton-preset';
|
|
import { GuestGuard } from '@lumina/market/app/guards/guest-guard';
|
|
import { RegisterTypeStep } from '@lumina/market/app/screens/(auth)/auth/register/organisms/register-type-step';
|
|
import type { Metadata } from 'next';
|
|
|
|
import { i18n } from '../../../../i18n';
|
|
import { AuthTopBar } from '../../../organisms/auth-top-bar';
|
|
import { AuthTemplate } from '../../../templates/auth-template';
|
|
|
|
export function generateMetadata(): Metadata {
|
|
return {
|
|
title: i18n.t('auth:register.meta-title'),
|
|
robots: { index: false },
|
|
};
|
|
}
|
|
|
|
/** Registration step 1, the account type. The frame renders on the server; the step only in the browser (0013). */
|
|
export default function RegisterTypePage() {
|
|
return (
|
|
<AuthTemplate header={<AuthTopBar />}>
|
|
<GuestGuard
|
|
fallback={
|
|
<SkeletonPreset
|
|
preset="form"
|
|
count={2}
|
|
label={i18n.t('auth:loading')}
|
|
/>
|
|
}
|
|
>
|
|
<RegisterTypeStep size="lg" supportPlacement="bottom" />
|
|
</GuestGuard>
|
|
</AuthTemplate>
|
|
);
|
|
}
|