/** * MobileLayout 移动端布局组件 * 设计稿参考: UIDesignSpec.md 3.1 * 尺寸: 402x874 */ import React from 'react'; import { StatusBar } from '../navigation/StatusBar'; import { BottomNav, NavItem } from '../navigation/BottomNav'; export interface MobileLayoutProps { children: React.ReactNode; navItems?: NavItem[]; activeNavId?: string; onNavItemClick?: (id: string) => void; showStatusBar?: boolean; showBottomNav?: boolean; className?: string; contentClassName?: string; } export const MobileLayout: React.FC = ({ children, navItems = [], activeNavId = '', onNavItemClick, showStatusBar = true, showBottomNav = true, className = '', contentClassName = '', }) => { return (
{/* Status Bar */} {showStatusBar && } {/* Content Area */}
{children}
{/* Bottom Navigation */} {showBottomNav && navItems.length > 0 && ( )}
); }; export default MobileLayout;