import Link from "next/link"; import type { PricingBlockValue } from "@/types/wagtail"; export default function Pricing({ value }: { value: PricingBlockValue }) { return (
{value.heading && (

{value.heading}

)}
{value.plans?.map((plan, index) => (

{plan.name}

{plan.price}
    {plan.features?.map((feature, featureIndex) => (
  • {feature}
  • ))}
{plan.button && ( {plan.button.text} )}
))}
); }