'use client'; import { forwardRef, HTMLAttributes, ReactNode } from 'react'; import styles from './tower-pricing.module.css'; export interface PricingTier { name: string; price: number | string; currency?: string; period?: string; features: string[]; featured?: boolean; featuredLabel?: string; buttonText?: string; onSelect?: () => void; } export interface TowerPricingProps extends HTMLAttributes { /** Pricing tiers */ tiers: PricingTier[]; /** Color variant */ variant?: 'gold' | 'blood' | 'cyan' | 'bone'; /** Show connectors between tiers */ showConnectors?: boolean; } export const TowerPricing = forwardRef( ( { tiers, variant = 'gold', showConnectors = false, className, ...props }, ref ) => { return (
{tiers.map((tier, index) => (
{tier.featured && tier.featuredLabel && ( {tier.featuredLabel} )}
{tier.name}
{tier.currency || '$'} {tier.price} {tier.period && /{tier.period}}
    {tier.features.map((feature, i) => (
  • {feature}
  • ))}
{showConnectors && index < tiers.length - 1 && ( )}
))}
); } ); TowerPricing.displayName = 'TowerPricing'; export default TowerPricing;