Use same lock values as mobile clients
[ProtonMail-WebClient.git] / packages / shared / lib / subscription / format.ts
blob00949cc4f14e7913cd36bdfef0ae7d1e47d85090
1 import type { Subscription, SubscriptionModel } from '@proton/shared/lib/interfaces';
3 import { isManagedByMozilla } from './helpers';
5 const format = (
6     subscription: Subscription,
7     UpcomingSubscription: Subscription | undefined | null
8 ): SubscriptionModel => {
9     return {
10         ...subscription,
11         UpcomingSubscription: UpcomingSubscription || undefined,
12         isManagedByMozilla: isManagedByMozilla(subscription),
13     };
16 export default format;