'use client'; import Link from 'next/link'; import { usePathname, useRouter } from 'next/navigation'; import { useState } from 'react'; const NAV_ITEMS = [ { href: '/admin/dashboard', label: '대시보드', icon: ( ), }, { href: '/admin/members', label: '회원 관리', icon: ( ), }, { href: '/admin/services', label: '서비스 설정', icon: ( ), }, { href: '/admin/contacts', label: '문의 내역', icon: ( ), }, { href: '/admin/quotes', label: '견적서 관리', icon: ( ), }, { href: '/admin/marketing', label: '마케팅 에셋', icon: ( ), }, ]; interface AdminSidebarProps { isOpen?: boolean; onClose?: () => void; } export default function AdminSidebar({ isOpen = false, onClose }: AdminSidebarProps) { const pathname = usePathname(); const router = useRouter(); const [loggingOut, setLoggingOut] = useState(false); async function handleLogout() { setLoggingOut(true); await fetch('/api/admin/logout', { method: 'POST' }); router.push('/admin/login'); } return ( ); }