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";
import React, { Component } from "react";
import AntdLocaleProvider from "antd/es/locale-provider";
import "antd/es/locale-provider/style";

var LocaleProvider = function (_Component) {
    _inherits(LocaleProvider, _Component);

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

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

    _createClass(LocaleProvider, [{
        key: "render",
        value: function render() {
            var children = this.props.children;

            return React.createElement(
                AntdLocaleProvider,
                this.props,
                children
            );
        }
    }]);

    return LocaleProvider;
}(Component);

export default LocaleProvider;