blob: a559c8dd4e2b56b5a3a7c4a5fbcaf076dd237349 (
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
28
29
30
31
|
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;
|