// components/pricing/PlanCard.tsx import { Plan } from "./types"; import { formatEUR, monthlyForYearly } from "./money"; import { CheckIcon } from "./icons"; export default function PlanCard({ plan, billing, }: { plan: Plan; billing: "monthly" | "yearly"; }) { const price = billing === "monthly" ? plan.monthlyPrice : monthlyForYearly(plan.monthlyPrice, plan.yearlyDiscount); return (
{plan.popular && (
Most popular
)}

{plan.name}

{plan.bestFor}

{formatEUR(price)} /mo
{billing === "yearly" && (

Billed annually (save {Math.round(plan.yearlyDiscount * 100)}%)

)}

Includes:

SLA: {plan.sla}

{plan.ctaLabel}

30-day cancel. Incident credits if we miss SLAs.

); }