meraproject/content/modulebz/js/module/ui/BackgroundFocus.js
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00

24 lines
592 B
JavaScript

var BackgroundFocus;
export default window.BackgroundFocus = BackgroundFocus = class BackgroundFocus extends React.Component {
constructor(props) {
super(props);
this.state = {
visible: props.visible != null ? props.visible : props.visible = false
};
}
componentWillReceiveProps(props) {
var visible;
return this.setState(({
visible
} = props));
}
render() {
return /*#__PURE__*/React.createElement("div", {
className: ["background_focus", this.state.visible ? 'show' : ''].join(" "),
onClick: this.props.onClick
});
}
};