'use strict';

import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
export var Note =
/*#__PURE__*/
function (_React$Component) {
  _inheritsLoose(Note, _React$Component);

  function Note() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Note.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        children = _this$props.children,
        props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);

    var classNames = classnames('rc-note', className);
    return React.createElement("div", _extends({
      className: classNames
    }, props), this.props.noteText, ": ", children);
  };

  return Note;
}(React.Component);

_defineProperty(Note, "propTypes", {
  children: PropTypes.node.isRequired,
  className: PropTypes.string,
  noteText: PropTypes.string
});

_defineProperty(Note, "defaultProps", {
  className: null,
  noteText: 'TRANSLATE:NOTE'
});