mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
22 lines
507 B
JavaScript
22 lines
507 B
JavaScript
import PropTypes from 'prop-types'
|
|
import React from 'react'
|
|
import CSSModules from 'browser/lib/CSSModules'
|
|
import styles from './InfoButton.styl'
|
|
|
|
const InfoButton = ({
|
|
onClick
|
|
}) => (
|
|
<button styleName='control-infoButton'
|
|
onClick={(e) => onClick(e)}
|
|
>
|
|
<img className='infoButton' src='../resources/icon/icon-info.svg' />
|
|
<span styleName='tooltip'>Info</span>
|
|
</button>
|
|
)
|
|
|
|
InfoButton.propTypes = {
|
|
onClick: PropTypes.func.isRequired
|
|
}
|
|
|
|
export default CSSModules(InfoButton, styles)
|