/*!
 * Copyright © 2016-2018 European Support Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */

import React from 'react';
import PropTypes from 'prop-types';
import enhanceWithClickOutside from 'react-click-outside';

class ClickOutsideWrapper extends React.Component {
    static propTypes = {
        onClose: PropTypes.func
    };

    handleClickOutside() {
        this.props.onClose();
    }
    render() {
        return <div>{this.props.children}</div>;
    }
}

export default enhanceWithClickOutside(ClickOutsideWrapper);
