27 lines
1.2 KiB
PHP
27 lines
1.2 KiB
PHP
<div class="p-6">
|
|
<div class="flex items-start gap-4">
|
|
@if($danger)
|
|
<div class="w-10 h-10 rounded-full bg-red/10 flex items-center justify-center flex-shrink-0">
|
|
<svg class="w-5 h-5 text-red" fill="none" viewBox="0 0 20 20" stroke="currentColor" stroke-width="1.5">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M10 9V5m0 8h.01M4.93 4.93l10.14 10.14M10 18a8 8 0 100-16 8 8 0 000 16z"/>
|
|
</svg>
|
|
</div>
|
|
@endif
|
|
<div class="flex-1 min-w-0">
|
|
<h3 class="text-base font-semibold text-t1">{{ $title }}</h3>
|
|
<p class="mt-1.5 text-sm text-t2">{{ $message }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex gap-3 mt-6 justify-end">
|
|
<button wire:click="closeModal"
|
|
class="px-4 py-2 bg-s2 text-t2 text-sm font-medium rounded-lg hover:text-t1 transition-colors border border-white/[.06]">
|
|
{{ $cancelLabel }}
|
|
</button>
|
|
<button wire:click="confirm"
|
|
class="px-4 py-2 text-sm font-medium rounded-lg transition-opacity hover:opacity-90 {{ $danger ? 'bg-red text-white' : 'bg-accent-gradient text-white' }}">
|
|
{{ $confirmLabel }}
|
|
</button>
|
|
</div>
|
|
</div>
|