misc: add settings pages

This commit is contained in:
Xyphyn committed 2023-08-13 13:00:00 -07:00
1 parent 7e76b1684c
commit f493f19c60
12 files changed
+270 -148

No files matched your search

@@ -0,0 +1,27 @@
<script lang="ts">
import { goto } from '$app/navigation'
import { page } from '$app/stores'
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
import { fullCommunityName } from '$lib/util.js'
import type { PageData } from './$types.js'
export let data: PageData
$: communityUrl = `/c/${fullCommunityName(
data.community.community_view.community.name,
data.community.community_view.community.actor_id
)}`
</script>
<div class="flex flex-col gap-4 h-full">
<MultiSelect
headless
options={[`${communityUrl}/settings`, `${communityUrl}/settings/team`]}
optionNames={['Settings', 'Team']}
selected={$page.url.pathname}
on:select={(e) => {
goto(e.detail)
}}
/>
<slot />
</div>