Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
Svelte
12345678910111213141516171819202122232425262728293031<script lang="ts"> import type { Snippet } from "svelte"; import User from "$lib/components/ui/User.svelte"; import ProfilePopover from "$lib/components/profile/ProfilePopover.svelte"; import type * as ShTangledActorDefs from "$lib/api/lexicons/types/sh/tangled/actor/defs";
let { actor, verb, count, plural, children }: { actor: ShTangledActorDefs.ProfileViewBasic; verb: string; count: number; plural: string; children: Snippet; } = $props();</script>
<ProfilePopover identifier={actor.did}> <User handle={actor.handle} did={actor.did} link /></ProfilePopover><span>{verb}</span>{#if count === 1} {@render children()}{:else} <span>{count} {plural}</span>{/if}