28 lines
654 B
TypeScript
28 lines
654 B
TypeScript
import Draggable from "../../../DragNDrop/Draggable";
|
||
|
||
const groupColor = "bg-blue-800";
|
||
|
||
const DelayNodeComponent = () => {
|
||
return (
|
||
<Draggable data={{ type: "delay" }}>
|
||
<div className="node-component">
|
||
<div className={`node-component-handle ${groupColor}`} />
|
||
Задержка
|
||
</div>
|
||
</Draggable>
|
||
);
|
||
};
|
||
|
||
const MathNodeComponent = () => {
|
||
return (
|
||
<Draggable data={{ type: "math" }}>
|
||
<div className="node-component">
|
||
<div className={`node-component-handle ${groupColor}`} />
|
||
Математика
|
||
</div>
|
||
</Draggable>
|
||
);
|
||
};
|
||
|
||
export { DelayNodeComponent, MathNodeComponent };
|