"use client"; import { IconLogout, IconSearch, IconSettings } from "@tabler/icons-react"; import { useSetAtom } from "jotai"; import { motion } from "motion/react"; import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; import { SofaLogo } from "@/components/sofa-logo"; import { Kbd } from "@/components/ui/kbd"; import { commandPaletteOpenAtom } from "@/lib/atoms/command-palette"; import { signOut, useSession } from "@/lib/auth/client"; const navLinks = [ { href: "/dashboard", label: "Home" }, { href: "/explore", label: "Explore" }, ] as const; export function NavBar() { const { data: session } = useSession(); const router = useRouter(); const pathname = usePathname(); const setCommandPaletteOpen = useSetAtom(commandPaletteOpenAtom); return (
); }