import { useEffect, useState } from "react"; import { cn } from "@/lib/utils"; import { ExternalLink } from "lucide-react"; import { links } from "@/data/Sidebar"; import { VersionInfo } from "./VersionInfo"; interface SidebarProps { className?: string; } export function Sidebar({ className }: SidebarProps) { const [currentPath, setCurrentPath] = useState(""); useEffect(() => { // Hydration happens here const path = window.location.pathname; setCurrentPath(path); console.log("Hydrated path:", path); // Should log now }, []); return ( ); }