SkateSpots/.agents/skills/note-content/files/hooks/useCustomEmojis.ts
shakespeare.diy 06fae294b8 New project created with Shakespeare
Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-06-15 19:49:07 +07:00

13 lines
528 B
TypeScript

/**
* Viewer's own custom emoji collection (NIP-30).
*
* This minimal stub returns an empty list. To enable the viewer's
* custom emojis as a fallback when posts don't carry their own
* `emoji` tags, replace this implementation with one that fetches
* the user's kind 10030 "Emoji List" event and any kind 30030
* "Emoji Set" events it references, then exposes every shortcode
* → URL pair here.
*/
export function useCustomEmojis(): { emojis: Array<{ shortcode: string; url: string }> } {
return { emojis: [] };
}