import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
var _jsxFileName = 'src/panel/panelFooter.jsx';
/**
 * footer.jsx
 *
 * @Author: apple
 * @Date: 2018/1/29 18:01
 */

import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';

/**
 * Panel.Footer
 * */

var PanelFooter = function (_React$PureComponent) {
    _inherits(PanelFooter, _React$PureComponent);

    function PanelFooter() {
        _classCallCheck(this, PanelFooter);

        return _possibleConstructorReturn(this, (PanelFooter.__proto__ || Object.getPrototypeOf(PanelFooter)).apply(this, arguments));
    }

    _createClass(PanelFooter, [{
        key: 'render',
        value: function render() {
            var _props = this.props,
                prefixCls = _props.prefixCls,
                className = _props.className,
                children = _props.children,
                other = _objectWithoutProperties(_props, ['prefixCls', 'className', 'children']);

            var classes = classNames(prefixCls, {}, className);
            return React.createElement(
                'div',
                Object.assign({ className: classes }, other, {
                    __source: {
                        fileName: _jsxFileName,
                        lineNumber: 40
                    },
                    __self: this
                }),
                children
            );
        }
    }]);

    return PanelFooter;
}(React.PureComponent);

PanelFooter.propTypes = {
    /**
     * 类名前缀： 默认为ne-panel
     * */
    prefixCls: PropTypes.string,
    /**
     * 传入类名
     * */
    className: PropTypes.string,
    /**
     * 传入子元素
     * */
    children: PropTypes.node
};
PanelFooter.defaultProps = {
    prefixCls: 'ne-panel-footer'
};


export default PanelFooter;