import React from 'react';
import { Icon } from 'UI';
import stl from './escapeButton.module.css';

function EscapeButton({ onClose }) {
  return (
    <div className={stl.closeWrapper} onClick={onClose}>
      <Icon name="close" size="16" />
      <div>ESC</div>
    </div>
  );
}

export default EscapeButton;
