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

46 lines
1.4 KiB
TypeScript

import { FlexBox } from '@lumina/island/atoms/flex-box';
import { AuthGuard } from '@lumina/market/app/guards/auth-guard';
import { MobileTopBar, ROUTES } from '@lumina/market/app/navigation';
import {
InstallApp,
InstallAppSkeleton,
} from '@lumina/market/app/screens/(main)/account/install/organisms/install-app';
import type { Metadata } from 'next';
import { i18n } from '../../../../i18n';
export const metadata: Metadata = {
title: i18n.t('account:install.title'),
robots: { index: false },
};
/**
* نصب اپلیکیشن on mobile (J12-4): pushed from حساب کاربری, back · title · support, with the nav
* kept. In the installed app there is no browser bar, so back returns to حساب کاربری when nothing
* of this site is behind the page (R14). What the device can do is known only in the browser, so
* the server sends the skeleton.
*/
export default function InstallPage() {
return (
<>
<MobileTopBar
title={i18n.t('account:install.title')}
parentHref={ROUTES.account.root}
backToPrevious
/>
<FlexBox tag="main" direction="flex-col" className="flex-1 p-4">
<AuthGuard
fallback={
<InstallAppSkeleton
layout="mobile"
label={i18n.t('account:install.loading')}
/>
}
>
<InstallApp layout="mobile" />
</AuthGuard>
</FlexBox>
</>
);
}