chadtmiller.com/spaces-bookclub
Book club: a Svelte demo app for atproto spaces (@atproto/lex-space)
0
0
<script lang="ts">
import { handleOf } from '../../lib/atproto.ts'
/** An account's handle, resolved from its DID. */
let { did }: { did: string } = $props()
</script>
{#await handleOf(did)}
<span class="handle pending">{did.slice(0, 16)}…</span>
{:then handle}
<span class="handle">@{handle}</span>
{/await}
<style>
.pending {
color: var(--color-text-subtle);
}
</style>