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,
24 MaxBaseSpace: 524288000,
25 MaxDriveSpace: 1073741824,
26 MaxRewardSpace: 6442450944,
27 MaxBaseRewardSpace: 1073741824,
28 MaxDriveRewardSpace: 5368709120,
33 Services: PLAN_SERVICES.MAIL + PLAN_SERVICES.VPN,
46 export const getFreeCheckResult = (
47 currency: Currency = DEFAULT_CURRENCY,
48 cycle: Cycle = DEFAULT_CYCLE
49 ): SubscriptionCheckResponse => {