@props([
    'baseClass' => 'icon',
    'icon' => null,
    'size' => 'md',
])

@php
    $attributes = $attributes
        ->merge([
            'data-size' => $size
        ])
        ->class([
            $baseClass
        ]);       
@endphp

@if($icon || !$slot->isEmpty())
    <svg {{ $attributes }} viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
        @includeIf("backslash4::components.bs-icons.$icon")
    </svg>
@endif