feat: render emoji packs and goals in cards

This commit is contained in:
Alejandro Gomez
2023-07-26 16:13:47 +02:00
parent 7a6f4048fb
commit 59cf6506e0
21 changed files with 537 additions and 76 deletions

18
src/element/note.tsx Normal file
View File

@ -0,0 +1,18 @@
import "./note.css";
import { type NostrEvent } from "@snort/system";
import { Markdown } from "element/markdown";
import { Profile } from "element/profile";
export function Note({ ev }: { ev: NostrEvent }) {
return (
<div className="note">
<div className="note-header">
<Profile avatarClassname="note-avatar" pubkey={ev.pubkey} />
</div>
<div className="note-content">
<Markdown tags={ev.tags}>{ev.content}</Markdown>
</div>
</div>
);
}