@props(['type' => 'info']) @php $icon= [ 'info' => 'fa-solid fa-check text-white/40', 'error' => 'fa-solid fa-triangle-exclamation text-white/40', ][$type]; $base = [ 'info' => 'bg-primary-700 ', 'error' => 'bg-danger-800', ][$type]; $text = [ 'info' => '00border-primary-800/40 text-primary-800', 'error' => '00border-danger-800/40 text-danger-800', ][$type]; @endphp {{--
merge(['class' => "flex items-center justify-start "]) }}>
{{$slot}}
--}}
merge(['class' => "message-wrap flex items-center justify-start rounded-md max-w-fit {$base}"]) }}>
{{$slot}}