<?php

namespace App\Http\Livewire;

use Livewire\Component;
use App\Models\Company;

class DeleteModal extends Component
{
    public $showModal = false;
    public $deleteId;

    protected $listeners = ['showDeleteModal'];

    public function showDeleteModal($deleteId)
    {
        $this->deleteId = $deleteId;
        $this->showModal = true;
    }

    public function closeModal()
    {
        $this->showModal = false;
    }

    public function render()
    {
        return view('livewire.delete-modal',['deleteId' => $this->deleteId]);
    }

}
