From eb208a7e2fd020ab5d07d11cc6d52d1e3dcfcc7c Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Sun, 17 Sep 2017 17:55:04 +0200 Subject: Add simulation mode framework Includes object states in the store (by tick), charting, and progress bars. --- .../building/NewRoomConstructionComponent.js | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/components/sidebars/topology/building/NewRoomConstructionComponent.js (limited to 'src/components/sidebars/topology/building/NewRoomConstructionComponent.js') 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 ( +
+ Construct a new room +
+ ); + } + return ( +
+
+ Finalize new room +
+
+ Cancel construction +
+
+ ); + +}; + +export default NewRoomConstructionComponent; -- cgit v1.2.3