<div>
    @php
        $activeProfile = getActiveProfile();
        $isOwnCall = $callable && $activeProfile &&
            get_class($activeProfile) === get_class($callable) &&
            $activeProfile->id === $callable->id;
    @endphp
    @if ($isOwnCall)
        @livewire('calls.edit', ['call' => $call], key('edit-call-' . $call->id))
    @elseif ($callable?->isRemoved())
        <x-jetstream.button disabled wire:click="createConversation">
            {{ __('Respond') }}
        </x-jetstream.button>
    @else
        <x-jetstream.button wire:click="createConversation">
            {{ __('Respond') }}
        </x-jetstream.button>
    @endif
</div>
