import { Trans, msg } from '@lingui/macro'; import { useLingui } from '@lingui/react'; import { Body, Container, Head, Html, Preview, Section, Text } from '../components'; import { TemplateFooter } from '../template-components/template-footer'; export interface BulkSendCompleteEmailProps { userName: string; templateName: string; totalProcessed: number; successCount: number; failedCount: number; errors: string[]; assetBaseUrl?: string; } export const BulkSendCompleteEmail = ({ userName, templateName, totalProcessed, successCount, failedCount, errors, }: BulkSendCompleteEmailProps) => { const { _ } = useLingui(); return ( {_(msg`Bulk send operation complete for template "${templateName}"`)}
Hi {userName}, Your bulk send operation for template "{templateName}" has completed. Summary:
  • Total rows processed: {totalProcessed}
  • Successfully created: {successCount}
  • Failed: {failedCount}
{failedCount > 0 && (
The following errors occurred:
    {errors.map((error, index) => (
  • {error}
  • ))}
)} You can view the created documents in your dashboard under the "Documents created from template" section.
); };