feat: Add BlockComponent to render interactive simulation dashboard blocks with element management and resizing.

This commit is contained in:
2025-12-20 14:03:56 +05:30
parent 06a742a520
commit 0d3e7c0c12

View File

@@ -78,6 +78,11 @@ const BlockComponent: React.FC<BlockComponentProps> = ({
zIndex: block.zIndex || 1,
cursor: isDraggable ? "move" : "pointer",
}}
onMouseDown={(e) => {
if (isDraggable) {
handleBlockDragStart(block.blockUuid, e);
}
}}
onClick={handleMouseDown}
>
{/* Add Element Button */}