Create ClosedBadge.svelte

This commit is contained in:
freearhey 2024-12-30 18:00:00 +03:00
parent 8f33531cdb
commit 5f9f599912

View file

@ -0,0 +1,17 @@
<script>
import tippy from 'sveltejs-tippy'
export let channel
</script>
<div
class="text-gray-500 border-[1px] border-gray-200 text-xs inline-flex items-center px-2.5 py-0.5 dark:text-gray-300 cursor-default rounded-full"
use:tippy={{
content: `closed: ${channel.closed}`,
allowHTML: true,
placement: 'right',
interactive: true
}}
>
Closed
</div>