Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / shared / lib / user / format.ts
blobd4e12579b7b43196daaec06a34e01186ff48c6e2
1 import type { User } from '@proton/shared/lib/interfaces';
3 import { canPay, isAdmin, isFree, isMember, isPaid } from './helpers';
5 const format = (user: User) => {
6     return {
7         ...user,
8         isFree: isFree(user),
9         isPaid: isPaid(user),
10         isAdmin: isAdmin(user),
11         isMember: isMember(user),
12         canPay: canPay(user),
13     };
16 export default format;