'use client'

import { TOMGeneratorProvider } from '@/lib/sdk/tom-generator/context'
import { useSDK } from '@/lib/sdk'

export default function TOMLayout({ children }: { children: React.ReactNode }) {
  const { state } = useSDK()
  const tenantId = state?.tenantId || 'default'

  return (
    <TOMGeneratorProvider tenantId={tenantId}>
      {children}
    </TOMGeneratorProvider>
  )
}
