Update src/

This commit is contained in:
freearhey 2025-04-14 21:53:33 +03:00
parent 09b07e9b24
commit 86743c74f5
132 changed files with 4418 additions and 1907 deletions

View file

@ -0,0 +1,24 @@
<script lang="ts">
import IconButton from '~/components/IconButton.svelte'
import type { Channel } from '~/models'
import * as Icon from '~/icons'
export let channel: Channel
async function onClick() {
if (navigator.canShare) {
try {
navigator.share({
title: channel.getUniqueName(),
url: channel.getPageUrl()
})
} catch (err) {
console.log(err.message)
}
}
}
</script>
<IconButton {onClick}>
<Icon.Share class="text-gray-400" size={18} />
</IconButton>