1 import { c } from 'ttag';
3 import { MEMBER_ROLE } from '@proton/shared/lib/constants';
4 import type { Member } from '@proton/shared/lib/interfaces';
6 const MemberRole = ({ member }: { member: Member }) => {
7 if (member.Subscriber) {
8 return <>{c('User role').t`Primary admin`}</>;
11 if (member.Role === MEMBER_ROLE.ORGANIZATION_MEMBER) {
12 return <>{c('User role').t`Member`}</>;
15 if (member.Role === MEMBER_ROLE.ORGANIZATION_ADMIN) {
16 return <>{c('User role').t`Admin`}</>;
22 export default MemberRole;