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