import { useApp } from "@/pages/app/AppContext";
import { Badge } from "@/pages/app/components/ui";
import ReviewScreen from "@/pages/app/components/inv/ReviewScreen";
import { StatusCard, StatusDivider, StatusRow } from "@/pages/app/components/inv/StatusCard";
import { customerPhoneChange } from "@/mocks/dshnProfile";

/** Admin approved the new phone number — login now uses the new number. */
export default function ProfilePhoneApproved() {
  const { navigate } = useApp();
  const p = customerPhoneChange;

  return (
    <ReviewScreen
      headerTitle="تم اعتماد الرقم"
      tone="mint"
      icon="ri-check-line"
      title="تم اعتماد رقم جوالك الجديد"
      desc="يمكنك الآن تسجيل الدخول والتحقق باستخدام رقمك الجديد."
      primaryLabel="العودة إلى حسابي"
      onPrimary={() => navigate("profile")}
    >
      <StatusCard>
        <StatusRow label="رقم الجوال الحالي" value={p.newMasked} dir="ltr" />
        <StatusDivider />
        <StatusRow label="الحالة" badge={<Badge tone="success">معتمد</Badge>} />
      </StatusCard>
    </ReviewScreen>
  );
}