diff options
Diffstat (limited to 'src/components/sidebars/topology/room/RackConstructionComponent.js')
| -rw-r--r-- | src/components/sidebars/topology/room/RackConstructionComponent.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/sidebars/topology/room/RackConstructionComponent.js b/src/components/sidebars/topology/room/RackConstructionComponent.js new file mode 100644 index 00000000..8298eade --- /dev/null +++ b/src/components/sidebars/topology/room/RackConstructionComponent.js @@ -0,0 +1,19 @@ +import React from "react"; + +const RackConstructionComponent = ({inObjectConstructionMode, onStart, onStop}) => { + if (inObjectConstructionMode) { + return ( + <div className="btn btn-primary btn-block" onClick={onStop}> + Stop rack construction + </div> + ); + } + + return ( + <div className="btn btn-primary btn-block" onClick={onStart}> + Start rack construction + </div> + ); +}; + +export default RackConstructionComponent; |
