feat: mentions

This commit is contained in:
Alejandro Gomez
2023-06-28 10:21:03 +02:00
committed by Kieran
parent 0c8fbcfef1
commit 4aafb19f7e
9 changed files with 243 additions and 22 deletions

17
src/element/avatar.tsx Normal file
View File

@ -0,0 +1,17 @@
import { MetadataCache } from "@snort/system";
export function Avatar({
user,
avatarClassname,
}: {
user: MetadataCache;
avatarClassname: string;
}) {
return (
<img
className={avatarClassname}
alt={user?.name || user?.pubkey}
src={user?.picture ?? ""}
/>
);
}