// src/features/calls/ui/instructor-destination-setting.jsx
//
// "Phone number" card in the instructor Settings dropdown. The number we
// bridge masked calls to — encrypted at rest, never shown to the student,
// and unusable until the teacher confirms it via SMS OTP.
//
// Thin wrapper over the shared window.MaskedCalls.ui.PhoneVerifyCard (which
// holds the country picker + formatting + OTP logic, shared with the student
// dashboard banner).
//
// Public: window.MaskedCalls.ui.InstructorDestinationSetting

(function () {
  function InstructorDestinationSetting({ instructorId }) {
    const Card = window.MaskedCalls.ui.PhoneVerifyCard;
    if (!Card) return null;
    return <Card kind="instructor" instructorId={instructorId} title="Phone number" />;
  }

  window.MaskedCalls = window.MaskedCalls || {};
  window.MaskedCalls.ui = window.MaskedCalls.ui || {};
  window.MaskedCalls.ui.InstructorDestinationSetting = InstructorDestinationSetting;
})();
