summaryrefslogtreecommitdiff
path: root/src/components/sidebars/topology/building/NewRoomConstructionComponent.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/sidebars/topology/building/NewRoomConstructionComponent.js')
-rw-r--r--src/components/sidebars/topology/building/NewRoomConstructionComponent.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/components/sidebars/topology/building/NewRoomConstructionComponent.js b/src/components/sidebars/topology/building/NewRoomConstructionComponent.js
new file mode 100644
index 00000000..581330ab
--- /dev/null
+++ b/src/components/sidebars/topology/building/NewRoomConstructionComponent.js
@@ -0,0 +1,24 @@
+import React from "react";
+
+const NewRoomConstructionComponent = ({onStart, onFinish, onCancel, currentRoomInConstruction}) => {
+ if (currentRoomInConstruction === -1) {
+ return (
+ <div className="btn btn-primary btn-block" onClick={onStart}>
+ Construct a new room
+ </div>
+ );
+ }
+ return (
+ <div>
+ <div className="btn btn-primary btn-block" onClick={onFinish}>
+ Finalize new room
+ </div>
+ <div className="btn btn-default btn-block" onClick={onCancel}>
+ Cancel construction
+ </div>
+ </div>
+ );
+
+};
+
+export default NewRoomConstructionComponent;