47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
import { FlexBox } from '@lumina/island/atoms/flex-box';
|
|
import { PartBoundary } from '@lumina/market/app/error-boundaries';
|
|
import { AuthGuard } from '@lumina/market/app/guards/auth-guard';
|
|
import { DesktopPageTitle } from '@lumina/market/app/navigation';
|
|
import {
|
|
AccountOverview,
|
|
AccountOverviewSkeleton,
|
|
} from '@lumina/market/app/screens/(main)/account/organisms/account-overview';
|
|
import type { Metadata } from 'next';
|
|
|
|
import { i18n } from '../../../i18n';
|
|
|
|
export const metadata: Metadata = {
|
|
title: i18n.t('account:title'),
|
|
robots: { index: false },
|
|
};
|
|
|
|
/**
|
|
* حساب کاربری on desktop (J12-1 D), the account menu's first item: «بازگشت», the title, and the
|
|
* member's own account in the 560 column, in the browser only, behind a skeleton of the same size.
|
|
*/
|
|
export default function AccountPage() {
|
|
return (
|
|
<FlexBox tag="main" justifyContent="justify-center" className="px-8 py-10">
|
|
<FlexBox direction="flex-col" gap="gap-4" className="w-full max-w-form">
|
|
<DesktopPageTitle title={i18n.t('account:title')} />
|
|
<PartBoundary
|
|
name="account-overview"
|
|
description={i18n.t('account:error')}
|
|
framed
|
|
>
|
|
<AuthGuard
|
|
fallback={
|
|
<AccountOverviewSkeleton
|
|
layout="desktop"
|
|
label={i18n.t('account:loading')}
|
|
/>
|
|
}
|
|
>
|
|
<AccountOverview layout="desktop" />
|
|
</AuthGuard>
|
|
</PartBoundary>
|
|
</FlexBox>
|
|
</FlexBox>
|
|
);
|
|
}
|