"use client" import { cn } from "@/lib/utils" import { Info, Tag, Check, Shield, CircleHelp } from "lucide-react" import { useLanguage } from "@/lib/language-context" import { useState } from "react" interface PricingRow { persons: string express: string private: string classic?: string } interface SpecialPackage { name: string price: string description: string } interface PricingTableProps { route: string rows: PricingRow[] specials?: SpecialPackage[] vipInfo?: string[] effectiveFrom?: string expressInfo?: string districtSurcharge?: { label: string title: string description: string items: string[] closeLabel: string } } const PricingTable = ({ route, rows, specials, vipInfo, effectiveFrom, expressInfo, districtSurcharge }: PricingTableProps) => { const { t } = useLanguage() const [isSurchargeOpen, setIsSurchargeOpen] = useState(false) return (
{/* Route Header matching FeatureSection style */}

{route.includes("POZSONY") || route.includes("BRATISLAVA") ? "BRATISLAVA" : (route.includes("BÉCS") || route.includes("VIENNA")) ? "VIENNA" : "BUDAPEST"}

{route}

{districtSurcharge && ( )}
{/* Mobile cards */}
{rows.map((row, idx) => (
{row.persons}
{t.pricing.table.express}
{row.express} {idx === 0 && expressInfo && ( {expressInfo} )}
{t.pricing.table.private}
{row.private}
))}
{/* Desktop table */}
{rows.map((row, idx) => ( ))}
{t.pricing.table.passengers}
{t.pricing.table.classic} {t.pricing.table.classicNote}
{t.pricing.table.express}
{t.pricing.table.private}
{row.persons}
{row.express} {idx === 0 && expressInfo && ( {expressInfo} )}
{row.private}
{specials && specials.length > 0 && (
{specials.map((special, idx) => (
{special.name} — {special.price}

{special.description}

))}
{(vipInfo && vipInfo.length > 0) && (

{t.pricing.table.premium}

{vipInfo.map((info, idx) => (
{info}
))}
)}
)}
{effectiveFrom && (
{effectiveFrom}
)} {districtSurcharge && isSurchargeOpen && (

{districtSurcharge.label}

{districtSurcharge.title}

{districtSurcharge.description}

{districtSurcharge.items.map((item, idx) => (
{item}
))}
)}
) } export default PricingTable