MCPcopy Create free account
hub / github.com/PatoSala/react-native-blocks / handleEmojiSelect

Function handleEmojiSelect

packages/blocks/src/PageBlock.tsx:97–109  ·  view source on GitHub ↗
(emoji: string)

Source from the content-addressed store, hash-verified

95 };
96
97 const handleEmojiSelect = (emoji: string) => {
98 setPageIcon(emoji);
99 setShowEmojiSelector(false);
100
101 const updatedBlock = updateBlockData(blocks[blockId], {
102 format: {
103 page_icon: emoji,
104 ...blocks[blockId]?.format
105 }
106 });
107
108 updateBlock(updatedBlock);
109 };
110
111 const handleRemoveIcon = () => {
112 setPageIcon(null);

Callers

nothing calls this directly

Calls 2

updateBlockDataFunction · 0.90
updateBlockFunction · 0.85

Tested by

no test coverage detected