import type { AssembledProposal } from "@/lib/proposal/assemble"; type Props = { tiers: AssembledProposal["offer"]["tiers"] }; function formatEur(val: string | null | undefined): string { if (!val) return "—"; const n = parseFloat(val); return `€${n.toLocaleString("it-IT")}`; } export function PricingSection({ tiers }: Props) { return (
Le tre opzioni
Opzione {tier.tierLetter} / {durationLabel}
{formatEur(price)}
{tier.durationMonths > 1 ? `${tier.durationMonths} mesi` : "pagamento unico"}
Le tre opzioni si compongono progressivamente. La C eredita tutto da B, che a sua volta eredita tutto da A.