@props([
'alias' => null,
'class' => '',
'icon' => null,
])
@php
$icon = ($alias ? \Filament\Support\Facades\FilamentIcon::resolve($alias) : null) ?: ($icon ?? $slot);
@endphp
@if ($icon instanceof \Illuminate\Contracts\Support\Htmlable)
class($class) }}>
{{ $icon }}
@elseif (str_contains($icon, '/'))
merge(['src' => $icon])
->class($class)
}}
/>
@else
@svg(
$icon,
$class,
array_filter($attributes->getAttributes()),
)
@endif