mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-11 08:46:20 +00:00
18 lines
477 B
JavaScript
18 lines
477 B
JavaScript
import PropTypes from 'prop-types'
|
||
import React from 'react'
|
||
import CSSModules from 'browser/lib/CSSModules'
|
||
import styles from './ModalEscButton.styl'
|
||
|
||
const ModalEscButton = ({ handleEscButtonClick }) => (
|
||
<button styleName='escButton' onClick={handleEscButtonClick}>
|
||
<div styleName='esc-mark'>×</div>
|
||
<div>esc</div>
|
||
</button>
|
||
)
|
||
|
||
ModalEscButton.propTypes = {
|
||
handleEscButtonClick: PropTypes.func.isRequired
|
||
}
|
||
|
||
export default CSSModules(ModalEscButton, styles)
|