import React from 'react' import { Html, Head, Preview, Body, Container, Heading, Text, Hr } from '@react-email/components' export type FeedbackEmailCopy = { preview: string heading: string body: string senderEmailLabel?: string senderEmail?: string messageLabel: string message: string marketingConsent: string footer: string } type FeedbackEmailProps = { copy: FeedbackEmailCopy } export default function FeedbackEmail({ copy }: FeedbackEmailProps) { return ( {copy.heading} {copy.preview} {copy.heading} {copy.body} {copy.senderEmail ? ( <> {copy.senderEmailLabel ?? 'From email:'} {copy.senderEmail} ) : null} {copy.message ? ( <> {copy.messageLabel} {copy.message} ) : null} {copy.marketingConsent}
{copy.footer}
) }