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

/** Step 2 of 4 — verify the CURRENT phone number. */
export default function ProfilePhoneOldOtp() {
  const { navigate } = useApp();

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