import { EMAIL_ACTION_LINK_COMPONENT } from '../extensions'; import { type ActionEmailData, ActionEmailTemplate, type ActionEmailTemplateProps, } from '../components'; export const getDefaultInvitePropertyManagerEmailData = ( mode: 'tag' | 'text', args: { appName: string; signInLink: string; teamName: string; } ): ActionEmailData => { const signInLink = mode === 'tag' ? EMAIL_ACTION_LINK_COMPONENT : `${args.signInLink}`; return { bodyOne: `

You are invited to join ${args.teamName} on ${args.appName}.

Accept the invitation below to set up your team access.

`, bodyTwo: `

If you have any trouble with the button, you can use the following link below: ${signInLink}

`, buttonText: 'Accept Invitation', header: 'Welcome to the team!', shortDescription: `Accept your invitation to join ${args.teamName} on ${args.appName}.`, href: args.signInLink, subject: `You are invited to join ${args.teamName} on ${args.appName}`, }; }; export const InvitePmEmailTemplate = (props: ActionEmailTemplateProps) => { return (

This invitation link is for one-time setup of your team access and expires after 7 days. Sign up using the exact email address this invitation was sent to.

If your invitation expires before setup is complete, contact your team administrator for a new invitation.

For questions about team access, contact your team administrator.

`, }} /> ); };