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