import '@/styles/index.css'
import { Sidebar } from '@/app/components/sidebar'
import { Header } from '@/app/components/header'

export const metadata = {
  title: '地空业务支撑平台——生产管理子系统',
}

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="zh-CN">
      <body>
        <div className="flex h-screen overflow-hidden">
          <Sidebar />
          <div className="flex-1 flex flex-col overflow-hidden">
            <Header />
            <main className="flex-1 overflow-auto" style={{ backgroundColor: '#F0F2F5' }}>
              {children}
            </main>
          </div>
        </div>
      </body>
    </html>
  )
}
