wealth/apps/bull/src/app/(flow)/terms/subscription/page.tsx

48 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { FlexBox } from '@lumina/island/atoms/flex-box';
import { MobileTopBar } from '@lumina/market/app/navigation';
import {
SubscriptionTerms,
subscriptionTermsLabels,
} from '@lumina/market/app/screens/(flow)/terms/subscription/organisms/subscription-terms';
import { supportChatUrls } from '@lumina/market/app/screens/organisms/support-entry';
import { getEnv } from '@lumina/market/env';
import type { Metadata } from 'next';
import { i18n } from '../../../../i18n';
export function generateMetadata(): Metadata {
return {
title: i18n.t('terms:meta-title'),
description: i18n.t('terms:meta-description'),
};
}
/**
* «شرایط اشتراک» on mobile (S5 ۱.۱): a task page pushed from checkout, a suspended card or the
* support sheet, back · title · support and no bottom nav; back returns to where it was opened.
*/
export default function SubscriptionTermsPage() {
const labels = subscriptionTermsLabels(
i18n.getFixedT(null, 'terms'),
i18n.getFixedT(null, 'auth'),
getEnv().supportHours,
);
return (
<FlexBox direction="flex-col" className="min-h-dvh bg-surface">
<MobileTopBar title={labels.title} />
<FlexBox
tag="main"
direction="flex-col"
className="flex-1 px-4 pt-4 pb-8"
>
<SubscriptionTerms
layout="mobile"
chats={supportChatUrls()}
labels={labels}
/>
</FlexBox>
</FlexBox>
);
}