import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'amos-icon';

/**
 * close
 * @param {Object} props
 */
const Close = props => {
  const { onClose } = props;
  return (
    <div className="common-close" onClick={onClose}>
      <Icon icon="close" />
    </div>
  );
};

Close.propTypes = {
  onClose: PropTypes.func
};

export default Close;
