'use client'
import { useState } from 'react'
interface TripTabsProps {
activeTab: 'expenses' | 'analytics'
onTabChange: (tab: 'expenses' | 'analytics') => void
tripId: number
tripCurrency: string
participants: Array<{ id: number; name: string; is_creator: boolean }>
refreshTrigger?: number
onExpenseUpdated?: () => void
}
import ExpenseList from './ExpenseList'
import AnalyticsDashboard from './AnalyticsDashboard'
export default function TripTabs({
activeTab,
onTabChange,
tripId,
tripCurrency,
participants,
refreshTrigger,
onExpenseUpdated
}: TripTabsProps) {
return (
{/* Tab Navigation */}
{/* Tab Content */}
{activeTab === 'expenses' && (
)}
{activeTab === 'analytics' && (
)}
)
}