mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
20 lines
431 B
JavaScript
20 lines
431 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}
|
|
>
|
|
<img styleName='iconInfo' src='../resources/icon/icon-info.svg'/>
|
|
</button>
|
|
)
|
|
|
|
InfoButton.propTypes = {
|
|
onClick: PropTypes.func.isRequired
|
|
}
|
|
|
|
export default CSSModules(InfoButton, styles)
|