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