Update selected item color in Pass menu
[ProtonMail-WebClient.git] / packages / pass / lib / organization / helpers.ts
blobf4b92e6ce5192ae3687e4c121b9d5338ec84444e
1 import { UserPassPlan } from '@proton/pass/types/api/plan';
2 import type { User } from '@proton/shared/lib/interfaces/User';
3 import { isAdmin } from '@proton/shared/lib/user/helpers';
5 export const isB2BAdmin = (user: User, passPlan: UserPassPlan) => isAdmin(user) && passPlan === UserPassPlan.BUSINESS;
6 export const isBusinessPlan = (passPlan: UserPassPlan) => passPlan === UserPassPlan.BUSINESS;