'use client';

import { AuthProvider } from '@/contexts/AuthContext';
import ThemeToggle from '@/components/ThemeToggle';

export default function AdminLayout({
    children,
}: {
    children: React.ReactNode;
}) {
    return (
        <AuthProvider>
            <div className="min-h-screen bg-gray-100 dark:bg-gray-950">
                {children}
                <ThemeToggle floating />
            </div>
        </AuthProvider>
    );
}