import { useApp } from "@/pages/app/AppContext";
import OtpStep from "@/pages/app/components/inv/OtpStep";
import { customerPhoneChange } from "@/mocks/dshnProfile";

/** Step 4 of 4 — verify the NEW phone number, then send the request for review. */
export default function ProfilePhoneNewOtp() {
  const { navigate } = useApp();

  return (
    <OtpStep
      title="التحقق من الرقم الجديد"
      step={4}
      total={4}
      hint="أدخل الكود المرسل إلى الرقم الجديد"
      target={customerPhoneChange.newMasked}
      confirmLabel="تأكيد وإرسال الطلب"
      onConfirm={() => navigate("profilePhoneSent")}
    />
  );
}