mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
* abstract Space component to switch out Map * basic viewing possible * restructure components dir * all jsx --> js * App.jsx --> App.js * comment out 3d for now
17 lines
392 B
JavaScript
17 lines
392 B
JavaScript
import React from "react";
|
|
|
|
const CoverIcon = ({ isActive, isDisabled, onClickHandler }) => {
|
|
let classes = isActive ? "action-button enabled" : "action-button";
|
|
if (isDisabled) {
|
|
classes = "action-button disabled";
|
|
}
|
|
|
|
return (
|
|
<button className={classes} onClick={onClickHandler}>
|
|
<i className="material-icons">info</i>
|
|
</button>
|
|
);
|
|
};
|
|
|
|
export default CoverIcon;
|