1 import type { Recipient } from '@proton/shared/lib/interfaces';
3 import type { ShareInvitee } from '../../../../../store';
5 export const inviteesToRecipients = (invitees: ShareInvitee[]): Recipient[] => {
6 return invitees.map((invitee) => ({
8 Address: invitee.email,
9 ContactID: invitee.contactId,
13 export const recipientsToInvitees = (recipients: Recipient[]): ShareInvitee[] => {
14 return recipients.map((recipient) => ({
16 email: recipient.Address,
17 contactId: recipient.ContactID,
18 group: recipient.Group,