migrate: convert most components to svelte 5

This commit is contained in:
Xylight committed 2024-10-25 19:33:27 -07:00
1 parent d670f39f0a
commit 10ef4123da
225 files changed
+5441 -3341

No files matched your search

+8 -3
View File
@@ -4,9 +4,14 @@
import { profile } from '$lib/auth.js'
import { toast } from 'mono-svelte'
export let community: CommunityView | undefined = undefined
interface Props {
community?: CommunityView | undefined;
children?: import('svelte').Snippet<[any]>;
}
let subscribing = false
let { community = undefined, children }: Props = $props();
let subscribing = $state(false)
async function subscribe(
id: number | undefined = community?.community.id,
@@ -33,4 +38,4 @@
}
</script>
<slot {subscribe} {subscribing} />
{@render children?.({ subscribe, subscribing, })}