blob: fd552c1eb9965ea1420b1ad63480a5f9891c6196 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import React from 'react'
const NewRoomConstructionComponent = ({ onStart, onFinish, onCancel, currentRoomInConstruction }) => {
if (currentRoomInConstruction === '-1') {
return (
<div className="btn btn-outline-primary btn-block" onClick={onStart}>
<span className="fa fa-plus mr-2" />
Construct a new room
</div>
)
}
return (
<div>
<div className="btn btn-primary btn-block" onClick={onFinish}>
<span className="fa fa-check mr-2" />
Finalize new room
</div>
<div className="btn btn-default btn-block" onClick={onCancel}>
<span className="fa fa-times mr-2" />
Cancel construction
</div>
</div>
)
}
export default NewRoomConstructionComponent
|