import { formatPrice, formatDate } from "./format"; // Pure string-building functions, no server-only or client-only imports — // used both server-side for the actual email send (app/lib/orderEmail.ts, // app/api/checkout/route.ts) and client-side for the Live Preview page // (app/email-preview/[type]/page.tsx's client component), so a Live // Preview edit and the real sent email are guaranteed to render // identically — same function, same input shape, just different data // (real order vs. SAMPLE_ORDER below). // // Inline-styled HTML, not Tailwind classes or a