import "./badge.css"; import type { NostrEvent } from "@snort/system"; import { findTag } from "@/utils"; export function Badge({ ev }: { ev: NostrEvent }) { const name = findTag(ev, "name") || findTag(ev, "d"); const description = findTag(ev, "description") ?? ""; const thumb = findTag(ev, "thumb"); const image = findTag(ev, "image"); return (
{name}

{name}

{description?.length > 0 &&

{description}

}
); }