'use client';
import { Search, Bell, Plus, Menu } from 'lucide-react';
import { usePathname, useRouter } from 'next/navigation';
import { Button } from '@/components/ui/button';
import { useSidebarStore } from '@/lib/stores/use-sidebar-store';
import { CommandPalette } from '@/components/command-palette';
export function TopBar() {
const pathname = usePathname();
const router = useRouter();
const { setMobileOpen } = useSidebarStore();
const creation = pathname.startsWith('/projects')
? { href: '/projects?new=true', label: 'New project' }
: pathname.startsWith('/habits')
? { href: '/habits?new=true', label: 'New habit' }
: pathname.startsWith('/tasks')
? { href: '/tasks?new=true', label: 'New task' }
: null;
return (
<>
{/* Search / Command trigger */}
>
);
}