Merge branch 'docs-header-fix' into 'main'
[ProtonMail-WebClient.git] / packages / components / containers / offers / operations / mailTrial2023 / configuration.ts
blob155550245e9d58f2aeff56f5497e1204a797ee83
1 import { c } from 'ttag';
3 import { FeatureCode } from '@proton/features';
4 import { PLANS, PLAN_NAMES } from '@proton/payments';
5 import { CYCLE } from '@proton/shared/lib/constants';
7 import { getMailPlusInboxFeatures, getUnlimitedFeatures } from '../../helpers/offerCopies';
8 import type { OfferConfig } from '../../interface';
9 import Layout from './Layout';
10 import bannerImage from './upsell_mail-plus-free-trial.png';
11 import bannerImage2x from './upsell_mail-plus-free-trial@2x.png';
13 const config: OfferConfig = {
14     ID: 'mail-trial-2023',
15     featureCode: FeatureCode.OfferMailTrial2023,
16     deals: [
17         {
18             ref: 'plus_referral_trial-modal-m1',
19             dealName: PLAN_NAMES[PLANS.MAIL],
20             planIDs: {
21                 [PLANS.MAIL]: 1,
22             },
23             cycle: CYCLE.YEARLY,
24             features: getMailPlusInboxFeatures,
25             getCTAContent: () => c('Action').t`Upgrade now`,
26         },
27         {
28             ref: 'plus_referral_trial-modal-u2',
29             dealName: PLAN_NAMES[PLANS.BUNDLE],
30             planIDs: {
31                 [PLANS.BUNDLE]: 1,
32             },
33             cycle: CYCLE.TWO_YEARS,
34             popular: 1,
35             features: getUnlimitedFeatures,
36             getCTAContent: () => c('Action').t`Upgrade now`,
37         },
38         {
39             ref: 'plus_referral_trial-modal-u1',
40             dealName: PLAN_NAMES[PLANS.BUNDLE],
41             planIDs: {
42                 [PLANS.BUNDLE]: 1,
43             },
44             cycle: CYCLE.YEARLY,
45             features: getUnlimitedFeatures,
46             getCTAContent: () => c('Action').t`Upgrade now`,
47         },
48     ],
49     layout: Layout,
50     topButton: {
51         shape: 'outline',
52         getCTAContent: () => c('Action').t`Upgrade`,
53     },
54     images: {
55         bannerImage,
56         bannerImage2x,
57     },
60 export default config;