"use client"

import { LocaleProvider } from "@/lib/i18n/context"
import { Header } from "@/components/layout/header"
import { Sidebar } from "@/components/layout/sidebar"
import { Footer } from "@/components/layout/footer"

export default function ForumLayout({ children }: { children: React.ReactNode }) {
  return (
    <LocaleProvider>
      <div className="flex min-h-screen flex-col bg-background">
        <Header />
        <div className="mx-auto flex w-full max-w-7xl flex-1 gap-8 px-4 lg:px-8">
          <Sidebar />
          <main className="flex-1 py-8">{children}</main>
        </div>
        <Footer />
      </div>
    </LocaleProvider>
  )
}
