@props([
    'type' => 'button',
    'href' => null,
])

@if ($href)
    <a href="{{ $href }}" {{ $attributes->merge(['class' => 'btn-custom']) }}>
        {{ $slot }}
    </a>
@else
    <button type="{{ $type }}" {{ $attributes->merge(['class' => 'btn-custom']) }}>
        {{ $slot }}
    </button>
@endif
