<?php

namespace App\Livewire;

use LivewireUI\Modal\ModalComponent;

/**
 * Confirmation before a customer's own two-factor sign-in is removed (R23).
 * No mutation here — Settings::disableTwoFactor() still runs its own
 * requireConfirmedPassword() check, unchanged.
 */
class ConfirmDisableTwoFactor extends ModalComponent
{
    public function confirm(): void
    {
        $this->dispatch('twofa-disable-confirmed');
        $this->closeModal();
    }

    public function render()
    {
        return view('livewire.confirm-disable-two-factor');
    }
}
