import { html, SafeHtml, safeUrl } from "./html.js" /** Email renderizzata: oggetto, HTML (layout comune) e testo semplice. */ export type RenderedEmail = { subject: string; html: string; text: string } const BRAND = "ITI TECHNOLOGY" const COLOR = "#0b5c7a" const FOOTER_TEXT = `${BRAND} · trattamento acqua, energia rinnovabile, comfort e mobilità elettrica` /** Pulsante (link) in stile brand; l'URL passa da safeUrl. */ export const button = (label: string, url: string) => html`
| ${label} |
${content}
` /** Tabella chiave/valore (riepiloghi d'ordine, preventivi, prenotazioni). */ export function table(rows: readonly (readonly [string, SafeHtml | string])[], opts: { boldLast?: boolean } = {}) { return html`| ${label} | ${value} |