mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
20 lines
437 B
JavaScript
20 lines
437 B
JavaScript
import React, { PropTypes } from 'react'
|
|
import CSSModules from 'browser/lib/CSSModules'
|
|
import styles from './InfoButton.styl'
|
|
|
|
const InfoButton = ({
|
|
onClick
|
|
}) => (
|
|
<button styleName='control-infoButton'
|
|
onClick={onClick}
|
|
>
|
|
<i className='fa fa-info-circle infoButton' styleName='info-button' />
|
|
</button>
|
|
)
|
|
|
|
InfoButton.propTypes = {
|
|
onClick: PropTypes.func.isRequired
|
|
}
|
|
|
|
export default CSSModules(InfoButton, styles)
|