// 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.bestFor}
Billed annually (save {Math.round(plan.yearlyDiscount * 100)}%)
)}Includes:
SLA: {plan.sla}
30-day cancel. Incident credits if we miss SLAs.