import AdminSection from "./AdminSection";

interface AdminFormProps {
  children: React.ReactNode;
  onSubmit?: (e: React.FormEvent<HTMLFormElement>) => void;
  className?: string;
}

export default function AdminForm({ children, onSubmit, className = "" }: AdminFormProps) {
  return (
    <form onSubmit={onSubmit} className={`space-y-8 ${className}`}>
      {children}
    </form>
  );
}

// Export Section for convenience
AdminForm.Section = AdminSection;


