mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
20 lines
575 B
JavaScript
20 lines
575 B
JavaScript
import PropTypes from 'prop-types'
|
|
import React from 'react'
|
|
import CSSModules from 'browser/lib/CSSModules'
|
|
import styles from './FullscreenButton.styl'
|
|
|
|
const FullscreenButton = ({
|
|
onClick
|
|
}) => (
|
|
<button styleName='control-fullScreenButton' title='Fullscreen' onMouseDown={(e) => onClick(e)}>
|
|
<img styleName='iconInfo' src='../resources/icon/icon-full.svg' />
|
|
<span styleName='tooltip'>Fullscreen</span>
|
|
</button>
|
|
)
|
|
|
|
FullscreenButton.propTypes = {
|
|
onClick: PropTypes.func.isRequired
|
|
}
|
|
|
|
export default CSSModules(FullscreenButton, styles)
|