import { getManualToc } from '@/lib/manual-server'
import { ManualSidebar } from './_components/manual-sidebar'

export default function ManualLayout({
  children,
}: {
  children: React.ReactNode
}) {
  const toc = getManualToc()
  return (
    <div className="flex w-full">
      <ManualSidebar toc={toc} />
      <main className="min-w-0 flex-1">{children}</main>
    </div>
  )
}
