import React from 'react' import { Check } from 'lucide-react' import { AnimateIn } from '@/components/AnimateIn' interface Feature { feature: string } interface Package { name: string price: string description?: string features?: Feature[] isPopular?: boolean ctaLabel?: string ctaUrl?: string } interface PricingTableBlockProps { badge?: string heading: string subheading?: string disclaimer?: string packages?: Package[] } export function PricingTableBlockComponent(props: PricingTableBlockProps) { const { badge, heading, subheading, disclaimer, packages } = props return (
{badge && (
{badge}
)}

{heading}

{subheading && (

{subheading}

)}
{packages && packages.length > 0 && (
{packages.map((pkg, idx) => (
{pkg.isPopular && (
Polecany Pakiet
)}

{pkg.name}

{pkg.description && (

{pkg.description}

)}
{pkg.price}
{pkg.features && pkg.features.length > 0 && (
    {pkg.features.map((feat, fIdx) => (
  • {feat.feature}
  • ))}
)}
))}
)} {disclaimer && (

{disclaimer}

)}
) }