import { Outlet } from 'react-router-dom'
import Sidebar from './Sidebar'
import { PrivacyNoticeModal } from './PrivacyNotice'

export default function Layout() {
  return (
    <div className="flex h-screen overflow-hidden bg-gray-50">
      <Sidebar />
      <main className="flex-1 overflow-auto">
        <Outlet />
      </main>
      {/* SR-002: desktop-mode one-time cloud-data privacy modal. No-op in
          lab/paas and after the user acknowledges (persisted). */}
      <PrivacyNoticeModal />
    </div>
  )
}
