'use client'; import { useState } from 'react'; import { usePathname } from 'next/navigation'; import Sidebar from './Sidebar'; const AUTH_PATHS = ['/login', '/signup', '/admin']; export default function DashboardShell({ children }: { children: React.ReactNode }) { const [sidebarOpen, setSidebarOpen] = useState(false); const pathname = usePathname(); const isAuthPage = AUTH_PATHS.some((p) => pathname.startsWith(p)); if (isAuthPage) { return <>{children}; } return (
setSidebarOpen(false)} />
{/* Mobile top bar */}
쟁승메이드
{/* Main scrollable content */}
{children}
{/* 카카오 오픈채팅 플로팅 버튼 */} 1:1 상담
); }