// Pure formatting, no I/O, no server-only dependencies — safe to import // from both client components and server code (unlike rates.server.ts, // which pulls in @prisma/client and can't be bundled for the browser). export function formatPriceLabel(priceCents: number, currencyCode = "USD"): string { const amount = (priceCents / 100).toFixed(2); const symbol = currencyCode === "USD" || currencyCode === "CAD" ? "$" : `${currencyCode} `; return `${symbol}${amount}`; }