misc: add more links

This commit is contained in:
Xylight committed 2024-07-19 15:42:44 -07:00
1 parent 59bb6dde89
commit f38011e0c6
3 files changed
+97 -59

No files matched your search

@@ -0,0 +1,30 @@
<script lang="ts">
import { Button } from 'mono-svelte'
import { Icon, QuestionMarkCircle, type IconSource } from 'svelte-hero-icons'
import Avatar from '../../Avatar.svelte'
export let action: {
name: string
desc?: string
handle?: () => any
href?: string
shortcut?: string
icon: string | IconSource
}
</script>
<Button
href={action.href}
on:click={action.handle}
alignment="left"
color="tertiary"
size="lg"
class="focus:bg-slate-200 focus:dark:bg-zinc-800"
>
{#if typeof action.icon === 'string'}
<Avatar url={action.icon} width={20} />
{:else}
<Icon src={action.icon ?? QuestionMarkCircle} size="20" />
{/if}
{action.name}
</Button>