johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
<script lang="ts">
import type { IconName } from '#lib/icons.ts';
import Count from '#lib/atoms/Count.svelte';
import Icon from '#lib/atoms/Icon.svelte';
let {
href,
label,
icon,
count = 0,
current
}: { href: string; label: string; icon?: IconName; count?: number; current: boolean } = $props();
</script>
<a {href} aria-current={current ? 'page' : undefined}
>{#if icon}<Icon name={icon} />{/if}{label}{#if count > 0}<Count n={count} />{/if}</a
>