"use client"; import { ROUTES } from "@/lib/routes-config"; import SubLink from "./sublink"; import { usePathname } from "next/navigation"; interface DocsMenuProps { isSheet?: boolean; className?: string; } export default function DocsMenu({ isSheet = false, className = "" }: DocsMenuProps) { const pathname = usePathname(); // Skip rendering if not on a docs page if (!pathname.startsWith("/docs")) return null; return ( ); }