import { NavLink, useLocation } from 'react-router-dom'; import { Home, Users, Disc3, Calendar } from 'lucide-react'; // 모바일 헤더 컴포넌트 function MobileHeader({ title }) { return (
{title ? ( {title} ) : ( fromis_9 )}
); } // 모바일 하단 네비게이션 function MobileBottomNav() { const location = useLocation(); const navItems = [ { path: '/', label: '홈', icon: Home }, { path: '/members', label: '멤버', icon: Users }, { path: '/album', label: '앨범', icon: Disc3 }, { path: '/schedule', label: '일정', icon: Calendar }, ]; return ( ); } // 모바일 레이아웃 컴포넌트 // pageTitle: 헤더에 표시할 제목 (없으면 fromis_9) // hideHeader: true면 헤더 숨김 (일정 페이지처럼 자체 헤더가 있는 경우) function MobileLayout({ children, pageTitle, hideHeader = false }) { return (
{!hideHeader && }
{children}
); } export default MobileLayout;