"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 (
| {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 && (
|
{row.private} |
{special.description}
{districtSurcharge.label}
{districtSurcharge.description}