blob: d89b0ac0f4026321c4ecaf9434e61b26129efc19 (
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-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;
|