"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = CreateButton;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _reactIntl = require("react-intl");
var _cspaceInput = require("cspace-input");
var _CreateButton = _interopRequireDefault(require("../../../styles/cspace-ui/CreateButton.css"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const {
  Button
} = _cspaceInput.components;
const messages = (0, _reactIntl.defineMessages)({
  label: {
    "id": "createButton.label",
    "defaultMessage": "Create new"
  }
});
const propTypes = {
  onClick: _propTypes.default.func
};
function CreateButton(props) {
  const {
    onClick
  } = props;
  return /*#__PURE__*/_react.default.createElement(Button, {
    className: _CreateButton.default.common,
    icon: true,
    name: "create",
    onClick: onClick
  }, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, messages.label));
}
CreateButton.propTypes = propTypes;