blob: 8298eaded52c8bb81e57aac7259b41b4067ff96e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import React from "react";
const RackConstructionComponent = ({inObjectConstructionMode, onStart, onStop}) => {
if (inObjectConstructionMode) {
return (
<div className="btn btn-primary btn-block" onClick={onStop}>
Stop rack construction
</div>
);
}
return (
<div className="btn btn-primary btn-block" onClick={onStart}>
Start rack construction
</div>
);
};
export default RackConstructionComponent;
|