jsketcher/modules/ui/WindowSystem.jsx
2020-03-09 23:46:16 -07:00

34 lines
523 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import {NOOP} from "../gems/func";
//TODO: remove it
export default class WindowSystem extends React.Component {
constructor() {
super();
}
componentDidMount() {
}
componentWillUnMount() {
}
render() {
return this.props.children;
}
childContext = {
setWindowMoveHandler: NOOP
};
getChildContext() {
return this.childContext;
}
static childContextTypes = {
setWindowMoveHandler: PropTypes.func
}
}