@props(['name', 'class' => 'h-5 w-5'])

@php
    $icons = config('heroicons', []);
    $paths = $icons[$name] ?? $icons['cube-transparent'] ?? [];
@endphp

<svg {{ $attributes->merge(['class' => $class]) }} fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
    @foreach ($paths as $path)
        <path stroke-linecap="round" stroke-linejoin="round" d="{{ $path }}" />
    @endforeach
</svg>
