@use('Layout\Design\IconSet') @props(['name', 'label' => null]) @php $icon = IconSet::find($name); $isBrand = ($icon['set'] ?? null) === 'brand'; @endphp @if ($icon !== null) merge(array_filter([ 'class' => 'icon shrink-0', 'viewBox' => '0 0 24 24', 'fill' => $isBrand ? 'currentColor' : 'none', 'stroke' => $isBrand ? null : 'currentColor', 'stroke-width' => $isBrand ? null : 2, 'stroke-linecap' => $isBrand ? null : 'round', 'stroke-linejoin' => $isBrand ? null : 'round', 'role' => $label === null ? null : 'img', 'aria-hidden' => $label === null ? 'true' : null, 'aria-label' => $label, 'focusable' => 'false', ], static fn ($value): bool => $value !== null)) }} >{!! $icon['inner'] !!} @endif