{breakpoint || debug.enabled ? (
{
event.stopPropagation();
debug.toggleBreakpoint(id);
}
: undefined
}
/>
) : null}
{block.name}
{block.comment ? : null}
{actions ? (
<>
>
) : null}
{def?.user ? def.user.name : block.type}
{view.order[id] !== undefined ? {view.order[id]} : null}
{detail ? (
{renderDetail()}
) : null}
{Array.from({ length: rows }, (_, i) => {
const input = inputs[i];
const output = outputs[i];
return (
{input ? (
<>
{input.id}
{!connected.has(input.id) ? (
setParam(input.id, value))}
/>
) : null}
>
) : null}
{output ? output.id : null}
);
})}
{inputs.map((pin, i) => {
const y = top + i * PIN_HEIGHT + PIN_HEIGHT / 2;
return (
{block.pins?.[pin.id]?.inverted ? (
) : null}
);
})}
{outputs.map((pin, i) => {
const y = top + i * PIN_HEIGHT + PIN_HEIGHT / 2;
return (
);
})}
{menu && actions ? (
) : null}
);
}
export default memo(BlockNode);