"use client"; import { IconHome, IconSearch, IconUser } from "@tabler/icons-react"; import { motion } from "motion/react"; import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; import { signOut, useSession } from "@/lib/auth/client"; const tabs = [ { href: "/dashboard", label: "Home", icon: IconHome }, { href: "/search", label: "Search", icon: IconSearch }, ] as const; export function MobileTabBar() { const { data: session } = useSession(); const pathname = usePathname(); const router = useRouter(); if (!session?.user) return null; return ( ); }