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

28 lines
647 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-red-700";
const SensorNodeComponent = () => {
return (
<Draggable data={{ type: "sensor" }}>
<div className="node-component">
<div className={`node-component-handle ${groupColor}`} />
Сенсор
</div>
</Draggable>
);
};
const LedNodeComponent = () => {
return (
<Draggable data={{ type: "led" }}>
<div className="node-component">
<div className={`node-component-handle ${groupColor}`} />
Светодиод
</div>
</Draggable>
);
};
export { SensorNodeComponent, LedNodeComponent };