'use client';

import AuthProvider from './AuthProvider';
import Header from './Header';
import Footer from './Footer';
import { VisitorTracker } from '@/lib/useVisitorTracking';

export default function ClientLayout({ children }: { children: React.ReactNode }) {
  return (
    <AuthProvider>
      <VisitorTracker />
      <div className="min-h-screen flex flex-col">
        <Header />
        <main className="flex-grow">
          {children}
        </main>
        <Footer />
      </div>
    </AuthProvider>
  );
}
