import { useCollection, useIdentity } from '@deplixo/sdk'; import Home from './components/Home.jsx'; import Tours from './components/Tours.jsx'; import Bookings from './components/Bookings.jsx'; import Contact from './components/Contact.jsx'; const TABS = [ { id: 'home', label: 'Home' }, { id: 'tours', label: 'Tours' }, { id: 'bookings', label: 'Bookings' }, { id: 'contact', label: 'Contact' }, ]; function App() { const [tab, setTab] = useState('home'); const [selectedTour, setSelectedTour] = useState(null); const { user } = useIdentity(); const bookings = useCollection('bookings'); const inquiries = useCollection('inquiries'); const goToBooking = (tour) => { setSelectedTour(tour); setTab('bookings'); }; return (
Journeys made unforgettable