'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _extends2 = require('babel-runtime/helpers/extends');

var _extends3 = _interopRequireDefault(_extends2);

var _recompose = require('recompose');

var _Anchor = require('../../Anchor');

var _Anchor2 = _interopRequireDefault(_Anchor);

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

var _lodash = require('lodash');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var CloseButton = (0, _styledComponents2.default)(_Anchor2.default).withConfig({
  displayName: 'ModalCloseButton__CloseButton'
})(['position:absolute;top:0;right:0;margin:0.95em 1em 0.95em 1.5em;font-size:0.9em;']);

exports.default = (0, _recompose.mapProps)(function (props) {
  return (0, _extends3.default)({}, (0, _lodash.omit)(props, 'onClose'), {
    icon: 'delete2',
    onClick: props.onClose
  });
})(CloseButton);