'use client' import { useRouter, usePathname } from 'next/navigation' import { Suspense } from 'react' const TABS = [ { key: 'overview', label: 'Overview' }, { key: 'trends', label: 'Trends' }, { key: 'zones', label: 'Zones & Types' }, { key: 'ai', label: 'AI Insights' }, ] function TabsInner({ activeTab }: { activeTab: string }) { const router = useRouter() const pathname = usePathname() return (
{TABS.map(tab => ( ))}
) } export function DashboardTabs({ activeTab }: { activeTab: string }) { return ( }> ) }