import { msg } from '@lingui/core/macro'; import { useLingui } from '@lingui/react'; import { Trans } from '@lingui/react/macro'; import { formatTeamUrl } from '@documenso/lib/utils/teams'; import { Body, Button, Container, Head, Hr, Html, Img, Link, Preview, Section, Text, } from '../components'; import { useBranding } from '../providers/branding'; import { TemplateFooter } from '../template-components/template-footer'; import TemplateImage from '../template-components/template-image'; export type ConfirmTeamEmailProps = { assetBaseUrl: string; baseUrl: string; teamName: string; teamUrl: string; token: string; }; export const ConfirmTeamEmailTemplate = ({ assetBaseUrl = 'http://localhost:3002', baseUrl = 'https://documenso.com', teamName = 'Team Name', teamUrl = 'demo', token = '', }: ConfirmTeamEmailProps) => { const { _ } = useLingui(); const branding = useBranding(); const previewText = msg`Accept team email request for ${teamName} on Documenso`; return ( {_(previewText)}
{branding.brandingEnabled && branding.brandingLogo ? ( Branding Logo ) : ( )}
Verify your team email address {teamName} has requested to use your email address for their team on Documenso.
{formatTeamUrl(teamUrl, baseUrl)}
By accepting this request, you will be granting {teamName}{' '} access to:
  • View all documents sent to and from this email address
  • Allow document recipients to reply directly to this email address
  • Send documents on behalf of the team using the email address
You can revoke access at any time in your team settings on Documenso{' '} here.
Link expires in 1 hour.

); }; export default ConfirmTeamEmailTemplate;