@props([ 'name', 'class' => 'h-6 w-6', ]) @php $directional = in_array($name, ['arrow-up-right', 'arrow-right', 'arrow-left', 'chevron', 'external', 'directions', 'drag'], true); $paths = match ($name) { 'arrow-right' => '', 'arrow-left' => '', 'arrow-down' => '', 'chevron-down' => '', 'plus' => '', 'menu' => '', 'close' => '', 'play-fill' => '', 'pause-fill' => '', 'phone' => '', 'mail' => '', 'location' => '', 'directions' => '', 'arrow-up-right' => '', 'play' => '', 'pause' => '', 'mute' => '', 'reset' => '', 'drag' => '', 'chevron' => '', 'external' => '', 'document' => '', 'shareholders' => '', 'quality' => '', 'calendar' => '', 'building' => '', 'feedback' => '', default => '', }; @endphp @if ($paths !== '') class([ $class, 'ui-icon', 'ui-icon--directional' => $directional, ]) }} fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5" aria-hidden="true" > {!! $paths !!} @endif