Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / applications / drive / src / app / components / modals / ShareLinkModal / DirectSharing / helpers / transformers.ts
blob859990962c09f063f103f88884419c4a0b435b2e
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) => ({
7         Name: invitee.name,
8         Address: invitee.email,
9         ContactID: invitee.contactId,
10         Group: invitee.group,
11     }));
13 export const recipientsToInvitees = (recipients: Recipient[]): ShareInvitee[] => {
14     return recipients.map((recipient) => ({
15         name: recipient.Name,
16         email: recipient.Address,
17         contactId: recipient.ContactID,
18         group: recipient.Group,
19     }));