import { Text } from '@react-email/components' import { format } from 'date-fns' import { baseStyles } from '@/components/emails/_styles' import { EmailLayout } from '@/components/emails/components' interface HelpConfirmationEmailProps { type?: 'bug' | 'feedback' | 'feature_request' | 'other' attachmentCount?: number submittedDate?: Date } const getTypeLabel = (type: string) => { switch (type) { case 'bug': return 'Bug Report' case 'feedback': return 'Feedback' case 'feature_request': return 'Feature Request' case 'other': return 'General Inquiry' default: return 'Request' } } export function HelpConfirmationEmail({ type = 'other', attachmentCount = 0, submittedDate = new Date(), }: HelpConfirmationEmailProps) { const typeLabel = getTypeLabel(type) return ( Hello, We've received your {typeLabel.toLowerCase()} and will get back to you shortly. {attachmentCount > 0 && ( {attachmentCount} image{attachmentCount > 1 ? 's' : ''} attached. )} {/* Divider */}
Submitted on {format(submittedDate, 'MMMM do, yyyy')}. ) } export default HelpConfirmationEmail