import React from 'react' export interface LayoutShellProps { children: React.ReactNode sidebar?: { logo?: React.ReactNode navigation: React.ReactNode user?: React.ReactNode } topbar?: { title?: string breadcrumb?: React.ReactNode search?: boolean notifications?: boolean } content?: { header?: React.ReactNode } } export const LayoutShell: React.FC = ({ children, sidebar = { navigation: null, user: null, }, topbar = { title: '', breadcrumb: null, search: true, notifications: true, }, content = { header: null, }, }) => { return (
{/* Sidebar */} {/* Main Area */}
{/* Top Bar */}
{topbar.breadcrumb || (
메인 / {topbar.title || '대시보드'}
)}
{topbar.search && (
search
)} {topbar.notifications && (
notifications
)}
{/* Content Area */}
{content.header} {children}
) }