Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / components / containers / offers / operations / blackFridayPass2024Plus / configuration.ts
blobd5106193f043868d16dae8415a5d86642eb503b6
1 import { c } from 'ttag';
3 import { FeatureCode } from '@proton/features';
4 import { PLANS, PLAN_NAMES } from '@proton/payments';
5 import { COUPON_CODES, CYCLE } from '@proton/shared/lib/constants';
7 import { getFamilyPassFeatures, getUnlimitedInboxFeaturesForPass } from '../../helpers/offerCopies';
8 import type { OfferConfig } from '../../interface';
9 import Layout from './Layout';
11 const config: OfferConfig = {
12     ID: 'black-friday-2024-pass-plus',
13     autoPopUp: 'one-time',
14     featureCode: FeatureCode.OfferBlackFriday2024PassFree,
15     topButton: {
16         shape: 'ghost',
17         variant: 'bf-2024',
18         icon: 'percent',
19         iconSize: 4,
20         gradient: false,
21         // translator: translate "Black Friday" only if it's problematic in your language (offensive/unknown/etc.)
22         getCTAContent: () => c('BF2024: Action (top button in header)').t`Black Friday`,
23     },
24     canBeDisabled: true,
25     darkBackground: true,
26     deals: [
27         {
28             ref: 'bf_24_pass-plus-family12',
29             dealName: PLAN_NAMES[PLANS.PASS_FAMILY],
30             planIDs: {
31                 [PLANS.PASS_FAMILY]: 1,
32             },
33             cycle: CYCLE.YEARLY,
34             popular: 1,
35             mobileOrder: 1,
36             buttonSize: 'large',
37             couponCode: COUPON_CODES.BLACK_FRIDAY_2024,
38             features: getFamilyPassFeatures,
39             header: () => c('BF2024: Info').t`Most popular`,
40         },
41         {
42             ref: 'bf_24_pass-free-unlimited12',
43             dealName: PLAN_NAMES[PLANS.BUNDLE],
44             planIDs: {
45                 [PLANS.BUNDLE]: 1,
46             },
47             cycle: CYCLE.YEARLY,
48             mobileOrder: 3,
49             buttonSize: 'large',
50             couponCode: COUPON_CODES.BLACK_FRIDAY_2024,
51             features: getUnlimitedInboxFeaturesForPass,
52         },
53     ],
54     layout: Layout,
57 export default config;