"use client"; import { IconLogout, IconSearch, IconSettings } from "@tabler/icons-react"; import { motion } from "motion/react"; import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; import { useKeyboard } from "@/components/keyboard-provider"; import { Kbd } from "@/components/ui/kbd"; import { signOut, useSession } from "@/lib/auth/client"; const navLinks = [ { href: "/dashboard", label: "Home" }, { href: "/search", label: "Search" }, ] as const; export function NavBar() { const { data: session } = useSession(); const router = useRouter(); const pathname = usePathname(); const { setCommandPaletteOpen } = useKeyboard(); return (
); }