/** * DesktopLayout 桌面端布局组件 * 设计稿参考: UIDesignSpec.md 3.2 * 尺寸: 1440x900,侧边栏260px */ import React from 'react'; import { Sidebar, SidebarSection } from '../navigation/Sidebar'; export interface DesktopLayoutProps { children: React.ReactNode; logo?: React.ReactNode; sidebarSections: SidebarSection[]; activeNavId: string; onNavItemClick?: (id: string) => void; sidebarFooter?: React.ReactNode; headerContent?: React.ReactNode; className?: string; contentClassName?: string; } export const DesktopLayout: React.FC = ({ children, logo, sidebarSections, activeNavId, onNavItemClick, sidebarFooter, headerContent, className = '', contentClassName = '', }) => { return (
{/* Sidebar */} {/* Main Content */}
{/* Header (optional) */} {headerContent && (
{headerContent}
)} {/* Content Area */}
{children}
); }; export default DesktopLayout;