mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-12 17:26:17 +00:00
19 lines
575 B
JavaScript
19 lines
575 B
JavaScript
import PropTypes from 'prop-types'
|
|
import React from 'react'
|
|
import CSSModules from 'browser/lib/CSSModules'
|
|
import styles from './PreferenceButton.styl'
|
|
import i18n from 'browser/lib/i18n'
|
|
|
|
const PreferenceButton = ({ onClick }) => (
|
|
<button styleName='top-menu-preference' onClick={e => onClick(e)}>
|
|
<img src='../resources/icon/icon-setting.svg' />
|
|
<span styleName='tooltip'>{i18n.__('Preferences')}</span>
|
|
</button>
|
|
)
|
|
|
|
PreferenceButton.propTypes = {
|
|
onClick: PropTypes.func.isRequired
|
|
}
|
|
|
|
export default CSSModules(PreferenceButton, styles)
|