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}
Notes: ${input.contact.notes}
` : '' return { subject: `New inquiry: ${input.productName}`, html: `${input.contact.name} (${input.contact.email}) asked about ${input.productName}.
${notesLine}`, } }