import Link from 'next/link'; import { usePathname } from 'next/navigation'; interface SidebarNavItem { label: string; href: string; } // 현재 정의된 화면은 홈뿐이다 — 신규 화면이 추가될 때마다 이 목록에 항목을 늘린다. const SIDEBAR_NAV_ITEMS: SidebarNavItem[] = [{ label: '홈', href: '/' }]; interface AdminSidebarProps { isMobileOpen: boolean; isDesktopCollapsed: boolean; onCloseMobile: () => void; } /** * 사이드바 View — 내비 목록을 그린다. 데스크톱 push/접힘과 모바일 오버레이+백드롭은 전부 * Tailwind 반응형 클래스로 처리한다(CSS-first) — JS로 브레이크포인트를 판별하지 않는다. */ export function AdminSidebar({ isMobileOpen, isDesktopCollapsed, onCloseMobile, }: AdminSidebarProps) { const pathname = usePathname(); return ( <> {isMobileOpen && (