'use client' import Link from 'next/link' import { usePathname } from 'next/navigation' import { ListTree, Activity, Settings } from 'lucide-react' import { cn } from '@/lib/utils' import { debugProps } from '@/lib/debug' interface MobileTabBarProps { activeProductId: string | null } export function MobileTabBar({ activeProductId }: MobileTabBarProps) { const pathname = usePathname() const tabs: Array<{ href: string; icon: typeof ListTree; label: string; match: (p: string) => boolean }> = [] if (activeProductId) { tabs.push( { href: `/m/products/${activeProductId}`, icon: ListTree, label: 'Backlog', match: (p) => p === `/m/products/${activeProductId}`, }, { href: `/m/products/${activeProductId}/solo`, icon: Activity, label: 'Solo', match: (p) => p.startsWith(`/m/products/${activeProductId}/solo`), }, ) } tabs.push({ href: '/m/settings', icon: Settings, label: 'Settings', match: (p) => p.startsWith('/m/settings'), }) return ( ) }