import { formatTeamUrl } from '@documenso/lib/utils/teams'; import config from '@documenso/tailwind-config'; import { Body, Container, Head, Hr, Html, Preview, Section, Tailwind, Text } from '../components'; import { TemplateFooter } from '../template-components/template-footer'; import TemplateImage from '../template-components/template-image'; export type TeamDeleteEmailProps = { assetBaseUrl: string; baseUrl: string; teamUrl: string; isOwner: boolean; }; export const TeamDeleteEmailTemplate = ({ assetBaseUrl = 'http://localhost:3002', baseUrl = 'https://documenso.com', teamUrl = 'demo', isOwner = false, }: TeamDeleteEmailProps) => { const previewText = isOwner ? 'Your team has been deleted' : 'A team you were a part of has been deleted'; const title = isOwner ? 'Your team has been deleted' : 'A team you were a part of has been deleted'; const description = isOwner ? 'The following team has been deleted by you' : 'The following team has been deleted by its owner. You will no longer be able to access this team and its documents'; return ( {previewText}
{title} {description}
{formatTeamUrl(teamUrl, baseUrl)}

); }; export default TeamDeleteEmailTemplate;