Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455<script lang="ts"> import type { Snippet } from "svelte"; import type { ProfileRecord } from "$lib/api/records"; import ProfileChrome from "$lib/components/profile/ProfileChrome.svelte"; import type { ProfileCounts } from "$lib/components/profile/types";
interface Identity { did: string; handle: string; }
interface Props { identity: Identity | Promise<Identity>; profile: ProfileRecord | null | Promise<ProfileRecord | null>; counts: ProfileCounts | Promise<ProfileCounts>; viewerFollowRkey?: string | null | Promise<string | null | undefined>; notJoined: boolean | Promise<boolean>; bobbinUrl: string; delegationDid?: string; activeTab: string; content: Snippet; }
let { identity: identityProp, profile: profileProp, counts: countsProp, viewerFollowRkey: viewerFollowRkeyProp, notJoined: notJoinedProp, bobbinUrl, delegationDid, activeTab, content }: Props = $props();
// an await here suspends the whole navigation, so awaits live below the boundary const identity = $derived(await identityProp); const profile = $derived(await profileProp); const loadedCounts = $derived(await countsProp); const viewerFollowRkey = $derived(await viewerFollowRkeyProp); const notJoined = $derived(await notJoinedProp);</script>
<ProfileChrome {identity} {profile} {loadedCounts} {viewerFollowRkey} {notJoined} {bobbinUrl} {delegationDid} {activeTab} {content}/>