diff options
Diffstat (limited to 'src/components/sidebars/topology/building/BuildingSidebarContentComponent.js')
| -rw-r--r-- | src/components/sidebars/topology/building/BuildingSidebarContentComponent.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/components/sidebars/topology/building/BuildingSidebarContentComponent.js b/src/components/sidebars/topology/building/BuildingSidebarContentComponent.js new file mode 100644 index 00000000..b88b23b7 --- /dev/null +++ b/src/components/sidebars/topology/building/BuildingSidebarContentComponent.js @@ -0,0 +1,20 @@ +import React from "react"; +import CancelNewRoomConstructionButton from "../../../../containers/sidebars/topology/building/CancelNewRoomConstructionButton"; +import FinishNewRoomConstructionButton from "../../../../containers/sidebars/topology/building/FinishNewRoomConstructionButton"; +import StartNewRoomConstructionButton from "../../../../containers/sidebars/topology/building/StartNewRoomConstructionButton"; + +const BuildingSidebarContentComponent = ({currentRoomInConstruction}) => { + if (currentRoomInConstruction !== -1) { + return ( + <div> + <FinishNewRoomConstructionButton/> + <CancelNewRoomConstructionButton/> + </div> + ); + } + return ( + <StartNewRoomConstructionButton/> + ); +}; + +export default BuildingSidebarContentComponent; |
