import TopBar from '@/components/ui/TopBar'
import FooterBar from '@/components/ui/FooterBar'
import { Flex } from '@pikku/mantine/core'
import { I18nProvider } from '@/context/i18n-provider'

export default function LegalLayout({ children }: { children: React.ReactNode }) {
  return (
    <I18nProvider lang="en">
      <Flex direction="column" mih="100vh">
        <TopBar />
        <Flex component="main" direction="column" flex="1">
          {children}
        </Flex>
        <FooterBar />
      </Flex>
    </I18nProvider>
  )
}
