@props([
'href' => null,
'disabled' => false,
'icon' => null, // lucide icon name, ex: "shield"
'iconWrapClass' => 'w-8 h-8 rounded-lg flex items-center justify-center bg-secondary text-foreground',
])
@php
$tag = ($href && ! $disabled) ? 'a' : 'button';
$base = 'w-full flex items-center gap-3 px-4 py-3.5 text-left active:bg-secondary/50 transition-colors';
$attrs = $attributes->merge([
'class' => $base,
]);
@endphp
@if ($tag === 'a')
@if ($icon)
@endif
{{ $slot }}
@else
@endif