/* global React */ /** Pricing card for service detail pages. * Use within . */ function PricingCard({ tier, title, prices = [], bullets = [], footnote, ctaLabel = 'Laten we kennismaken', ctaHref = 'contact.html', highlight = false, extraLink }) { return (
{tier &&
{tier}
}

{title}

{prices.length > 0 && (
{prices.map((p, i) => (
{p.label && {p.label}} {p.value}
))}
)} {footnote &&

{footnote}

} {extraLink && ( {extraLink.label} )} {ctaLabel}
); } function PricingGrid({ heading, italic, sub, cards = [], note }) { return (
{(heading || italic) && (

{heading} {italic && {italic}}

{sub &&

{sub}

}
)}
{cards.map((c, i) => )}
{note &&

{note}

}
); } window.PricingCard = PricingCard; window.PricingGrid = PricingGrid;