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

Function handleRemoveBlock

packages/blocks/src/ImageBlock.tsx:53–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 };
52
53 const handleRemoveBlock = () => {
54 setSelectedBlockId(null);
55 setTimeout(() => {
56 removeBlock(blockId);
57 }, 100);
58 };
59
60 const backgroundColor = source === null ? "#7d7a751d" : "transparent";
61

Callers

nothing calls this directly

Calls 1

removeBlockFunction · 0.85

Tested by

no test coverage detected