feat: add account switcher
This commit is contained in:
1 parent
fc1afecfdd
commit
54ab6fdc82
6 files changed
+169
-61
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<script lang="ts">
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
|
||||
type T = $$Generic
|
||||
|
||||
const dispatcher = createEventDispatcher<{ action: any }>()
|
||||
|
||||
function action(detail: any) {
|
||||
dispatcher('action', detail)
|
||||
}
|
||||
</script>
|
||||
|
||||
<ul class="divide-y divide-slate-200 dark:divide-zinc-900 flex flex-col">
|
||||
<slot {action} />
|
||||
</ul>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="p-2 flex flex-row">
|
||||
<slot />
|
||||
</div>
|
||||
Reference in new issue
Block a user