1 import { type Currency, DEFAULT_CURRENCY, PLANS, PLAN_NAMES, PLAN_SERVICES, PLAN_TYPES } from '@proton/payments';
3 import { CYCLE, DEFAULT_CYCLE } from '../constants';
4 import type { Cycle, FreePlanDefault, SubscriptionCheckResponse } from '../interfaces';
6 export const FREE_PLAN: FreePlanDefault = {
15 Title: PLAN_NAMES[PLANS.FREE],
16 Type: PLAN_TYPES.PLAN,
17 Currency: DEFAULT_CURRENCY,
23 MaxBaseSpace: 524288000,
24 MaxDriveSpace: 524288000,
26 MaxRewardSpace: 524288000,
27 MaxBaseRewardSpace: 524288000,
28 MaxDriveRewardSpace: 524288000,
33 Services: PLAN_SERVICES.MAIL + PLAN_SERVICES.VPN,
46 export const getFreeCheckResult = (
47 currency: Currency = DEFAULT_CURRENCY,
48 cycle: Cycle = DEFAULT_CYCLE
49 ): SubscriptionCheckResponse => {