@props(['href' => '#', 'variant' => 'primary'])

@php
    $variants = match($variant) {
        'primary' => 'text-blue-600 hover:text-blue-900',
        'warning' => 'text-yellow-600 hover:text-yellow-900',
        'danger' => 'text-red-600 hover:text-red-900',
        'secondary' => 'text-gray-600 hover:text-gray-900',
        default => 'text-blue-600 hover:text-blue-900'
    };
@endphp

<a href="{{ $href }}" {{ $attributes->merge(['class' => "font-medium $variants transition duration-150 ease-in-out"]) }}>
    {{ $slot }}
</a>
