import { useRef } from 'react'; import { motion, useMotionValue, useSpring, useTransform } from 'framer-motion'; import { useNavigate, useLocation } from '@tanstack/react-router'; import { LayoutDashboard, Bot, FileText, Database, Terminal, Settings, Users, type LucideIcon, } from 'lucide-react'; import { cn } from '@/lib/utils'; import { useAppStore } from '@/store/app-store'; export function FloatingDock() { const mouseX = useMotionValue(Infinity); const navigate = useNavigate(); const location = useLocation(); const { currentProject } = useAppStore(); const navItems = [ { id: 'board', icon: LayoutDashboard, label: 'Board', path: '/board' }, { id: 'agent', icon: Bot, label: 'Agent', path: '/agent' }, { id: 'spec', icon: FileText, label: 'Spec', path: '/spec' }, { id: 'context', icon: Database, label: 'Context', path: '/context' }, { id: 'profiles', icon: Users, label: 'Profiles', path: '/profiles' }, { id: 'terminal', icon: Terminal, label: 'Terminal', path: '/terminal' }, { id: 'settings', icon: Settings, label: 'Settings', path: '/settings' }, ]; if (!currentProject) return null; return (