"use client"; import { BellIcon, GlobeIcon, HomeIcon, RowsIcon, UploadIcon } from "@radix-ui/react-icons" import Link from "next/link" import { FormEvent, JSX, SVGProps, useEffect, useState } from "react" import { useRouter, usePathname } from 'next/navigation' import { SearchIcon } from "lucide-react"; export default function BottomBar() { const router = useRouter(); const [pubkey, setPubkey] = useState(null); const [mounted, setMounted] = useState(false); const pathname = usePathname(); useEffect(() => { setMounted(true); setPubkey(window.localStorage.getItem('pubkey')); }, []); const isActive = (path: string, currentPath: string) => currentPath === path ? 'text-purple-500' : ''; // Render minimal navigation during SSR and hydration if (!mounted) { return ( ); } return ( ) }