<script lang="ts">
	import { fadeDefault } from '$lib/Transitions';
	import { fade } from 'svelte/transition';

	export let number: number;
</script>

{#if number > 0}
	<span
		class="absolute -right-[3px] -top-[6px] z-[1] rounded-lg bg-teal-600 px-1 text-xs"
		transition:fade={fadeDefault}
	>
		{number}
	</span>
{/if}
