import React, { useState } from "react"; function Section({ title, children }: { title: string; children: React.ReactNode }) { return (

{title}

{children}
); } const tabs = [ { id: "overview", label: "Overview" }, { id: "itinerary", label: "Itinerary" }, { id: "pricing", label: "Pricing" }, ]; const tabContent: Record = { overview: "This trip covers the highlights of the region with curated experiences, premium accommodations, and guided excursions throughout the journey.", itinerary: "Day 1: Arrival and welcome dinner. Day 2: Guided city tour and museum visit. Day 3: Coastal excursion with lunch. Day 4: Free day for exploration. Day 5: Departure.", pricing: "Standard package starts at $2,450 per person. Premium upgrade with private transfers and suite accommodation available at $3,200 per person.", }; function GlobeIcon() { return ( ); } function ListIcon() { return ( ); } function CurrencyIcon() { return ( ); } const tabIcons: Record = { overview: , itinerary: , pricing: , }; function TabBar({ activeTab, onSelect, withIcons = false, }: { activeTab: string; onSelect: (id: string) => void; withIcons?: boolean; }) { return (
{tabs.map((tab) => { const isActive = tab.id === activeTab; return ( ); })}
); } export default function TabsDemo() { const [activeTab, setActiveTab] = useState("overview"); const [activeIconTab, setActiveIconTab] = useState("overview"); return (
{tabContent[activeTab]}
{tabContent[activeIconTab]}
); }