someone
A person as the hub shows them.
import type { Person, Someone } from "#codebase/tcmts/hub"; export function someone(p: Person): Someone { return { did: p.did, ...(p.handle ? { handle: p.handle } : {}), ...(p.name ? { name: p.name } : {}), ...(p.bio ? { bio: p.bio } : {}), ...(p.avatar ? { avatar: p.avatar } : {}), }; }