export interface BookingEmailInput { serviceName: string date: string time: string contact: { name: string; phone: string; email: string; notes: string } } export function buildBookingNotificationEmail(input: BookingEmailInput): { subject: string; html: string } { const notesLine = input.contact.notes ? `

Notes: ${input.contact.notes}

` : '' return { subject: `New booking: ${input.serviceName} on ${input.date}`, html: `

${input.contact.name} booked ${input.serviceName} on ${input.date} at ${input.time}.

` + `

Phone: ${input.contact.phone}
Email: ${input.contact.email}

${notesLine}`, } } export interface InquiryEmailInput { productName: string contact: { name: string; email: string; notes: string } } export function buildInquiryNotificationEmail(input: InquiryEmailInput): { subject: string; html: string } { const notesLine = input.contact.notes ? `

Notes: ${input.contact.notes}

` : '' return { subject: `New inquiry: ${input.productName}`, html: `

${input.contact.name} (${input.contact.email}) asked about ${input.productName}.

${notesLine}`, } }