mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-07 10:25:22 +01:00
23 lines
515 B
JavaScript
23 lines
515 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import classnames from 'classnames'
|
|
|
|
class Button extends React.Component {
|
|
static propTypes = {
|
|
onClick: PropTypes.func,
|
|
style: PropTypes.object,
|
|
className: PropTypes.string,
|
|
children: PropTypes.node
|
|
}
|
|
|
|
render() {
|
|
return <a
|
|
onClick={this.props.onClick}
|
|
className={classnames("maputnik-button", this.props.className)}
|
|
style={this.props.style}>
|
|
{this.props.children}
|
|
</a>
|
|
}
|
|
}
|
|
|
|
export default Button
|