@php
    $toneClasses = match ($feed->statusTone()) {
        'success' => 'border-emerald-200 bg-emerald-50 text-emerald-800',
        'warning' => 'border-amber-200 bg-amber-50 text-amber-900',
        'danger' => 'border-red-200 bg-red-50 text-red-800',
        default => 'border-slate-200 bg-white text-slate-700',
    };
@endphp

<span @class([
    'inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs font-semibold',
    $toneClasses,
])>
    @if ($feed->statusTone() === 'warning')
        <span class="h-1.5 w-1.5 animate-pulse rounded-full bg-amber-500" aria-hidden="true"></span>
    @endif
    {{ $feed->statusLabel() }}
</span>
