'use client';

import { ProtectedRoute } from '@/components/auth/ProtectedRoute';

export default function AdminLayout({ children }: { children: React.ReactNode }) {
  return (
    <ProtectedRoute
      requireAdmin
      redirectTo="/dashboard"
      fallback={
        <div className="p-8 text-center">
          <p className="text-gray-500">Checking permissions...</p>
        </div>
      }
    >
      {children}
    </ProtectedRoute>
  );
}
