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;