wealth/apps/bull/src/app/(main)/account/page.tsx

47 lines
1.4 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 { MobileTopBar } 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 mobile (J12-1, J12-1b): a page pushed from the bar's avatar, back · title ·
* support, with the nav kept (خانه, or a creator's کانال, stays on). The member's own account, in
* the browser only, behind a skeleton of the same size.
*/
export default function AccountPage() {
return (
<>
<MobileTopBar title={i18n.t('account:title')} />
<FlexBox tag="main" direction="flex-col" className="flex-1 p-4">
<PartBoundary
name="account-overview"
description={i18n.t('account:error')}
>
<AuthGuard
fallback={
<AccountOverviewSkeleton
layout="mobile"
label={i18n.t('account:loading')}
/>
}
>
<AccountOverview layout="mobile" />
</AuthGuard>
</PartBoundary>
</FlexBox>
</>
);
}