"use client";

import { useRouter } from "@/i18n/routing";
import UserForm from "@/components/form/user/user-form";

export default function CreateUserPage() {
  const router = useRouter();

  const handleSuccess = () => {
    router.push("/admin/management-user");
  };

  const handleCancel = () => {
    router.push("/admin/management-user");
  };

  return (
    <div className="container mx-auto py-6">
      <UserForm
        mode="create"
        onSuccess={handleSuccess}
        onCancel={handleCancel}
      />
    </div>
  );
}