import { msg } from '@lingui/core/macro'; import { useLingui } from '@lingui/react'; import { Trans } from '@lingui/react/macro'; import { Body, Button, Container, Head, Hr, Html, Img, Preview, Section, Text, } from '../components'; import { useBranding } from '../providers/branding'; import { TemplateFooter } from '../template-components/template-footer'; import TemplateImage from '../template-components/template-image'; type OrganisationAccountLinkConfirmationTemplateProps = { type: 'create' | 'link'; confirmationLink: string; organisationName: string; assetBaseUrl: string; }; export const OrganisationAccountLinkConfirmationTemplate = ({ type = 'link', confirmationLink = '', organisationName = '', assetBaseUrl = 'http://localhost:3002', }: OrganisationAccountLinkConfirmationTemplateProps) => { const { _ } = useLingui(); const branding = useBranding(); const previewText = type === 'create' ? msg`A request has been made to create an account for you` : msg`A request has been made to link your Documenso account`; return ( {_(previewText)}
{branding.brandingEnabled && branding.brandingLogo ? ( Branding Logo ) : ( )}
{type === 'create' ? ( Account creation request ) : ( Link your Documenso account )} {type === 'create' ? ( {organisationName} has requested to create an account on your behalf. ) : ( {organisationName} has requested to link your current Documenso account to their organisation. )} {/* Placeholder text if we want to have the warning in the email as well. */} {/*
By accepting this request, you will be granting{' '} {organisationName} full access to:
  • Your account, and everything associated with it
  • Something something something
  • Something something something
You can unlink your account at any time in your security settings on Documenso{' '} here.
*/}
Link expires in 30 minutes.

); }; export default OrganisationAccountLinkConfirmationTemplate;