<?php

namespace App\Livewire\Admin;

use LivewireUI\Modal\ModalComponent;

/**
 * Confirmation before an operator signs every other browser out (R23). The
 * console's own, because operators and customers are two identities (R21) and
 * one shared modal would raise an event both sides listen for.
 */
class ConfirmEndOtherSessions extends ModalComponent
{
    public function confirm(): void
    {
        $this->dispatch('sessions-end-others-confirmed');
        $this->closeModal();
    }

    public function render()
    {
        return view('livewire.admin.confirm-end-other-sessions');
    }
}
