Asteri-Vostok/components/FlowEditor/nodes/Logic/Logic.tsx

28 lines
654 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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 };