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

@php
    $class = $variant === 'outline' ? 'primary-btn tr-bg ui-button' : 'primary-btn fix-gr-bg ui-button';
@endphp

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