1 import { c } from 'ttag';
3 import { Button } from '@proton/atoms';
4 import Badge from '@proton/components/components/badge/Badge';
5 import Icon from '@proton/components/components/icon/Icon';
7 import type { NewGroupMember } from './EditGroup';
8 import { GroupMemberItemWrapper } from './components/GroupMemberItemWrapper';
11 member: NewGroupMember;
12 handleRemoveNewMember: (memberToRemove: NewGroupMember) => void;
16 export const NewGroupMemberItem = ({ member, handleRemoveNewMember, submitting }: Props) => {
17 const { Name, Address, GroupMemberType } = member;
21 <GroupMemberItemWrapper memberEmail={Address} memberName={Name} groupMemberType={GroupMemberType}>
28 handleRemoveNewMember(member);
30 title={c('Action').t`Delete member`}
32 <Icon name="cross" size={5} alt={c('Action').t`Delete member`} />
35 <div className="flex flex-column flex-nowrap self-center">
39 className="rounded-sm"
40 tooltip={c('tooltip').t`Sending member invitation`}
41 >{c('invitation status').t`Sending invite...`}</Badge>
45 </GroupMemberItemWrapper>