function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

import React from 'react';
import { motion } from 'framer-motion';
import Icon from './Icon';

const CloseButton = props => /*#__PURE__*/React.createElement(motion.div, _extends({
  id: "close-button",
  whileHover: {
    scale: 1.1
  },
  whileTap: {
    scale: 0.95
  },
  style: {
    cursor: 'pointer'
  } // eslint-disable-next-line react/jsx-props-no-spreading

}, props), /*#__PURE__*/React.createElement(Icon, {
  name: "close"
}));

export default CloseButton;