@props([
'tag' => 'div',
'wireKey',
'maxWidth',
])
@aware(['header', 'footer'])
merge(['class' => 'modal-wrapper']) }}
@isset ($wireKey)
x-data="{}"
x-show="$wire.{{ $wireKey }}"
@endisset
>
<{{ $tag }} class="modal-container @if(!empty($maxWidth)) modal-{{ $maxWidth }} @endif" @click.outside="$wire.{{ $wireKey }} = false">
@if ($header)
@endif
@isset ($wireKey)
@endisset
{{ $slot }}
@if ($footer)
@endif
{{ $tag }}>