blob: 991715e98f971c9af32f85c022665fe5a013e29c (
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
27
|
import React from "react";
const NewRoomConstructionComponent = ({onStart, onFinish, onCancel, currentRoomInConstruction}) => {
if (currentRoomInConstruction === -1) {
return (
<div className="btn btn-primary btn-block" onClick={onStart}>
<span className="fa fa-plus mr-1"/>
Construct a new room
</div>
);
}
return (
<div>
<div className="btn btn-primary btn-block" onClick={onFinish}>
<span className="fa fa-check mr-1"/>
Finalize new room
</div>
<div className="btn btn-default btn-block" onClick={onCancel}>
<span className="fa fa-times mr-1"/>
Cancel construction
</div>
</div>
);
};
export default NewRoomConstructionComponent;
|