mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-31 00:30:33 +01:00
21 lines
469 B
JavaScript
21 lines
469 B
JavaScript
import React from 'react'
|
|
import classnames from 'classnames'
|
|
|
|
class Button extends React.Component {
|
|
static propTypes = {
|
|
onClick: React.PropTypes.func,
|
|
style: React.PropTypes.object,
|
|
className: React.PropTypes.string,
|
|
}
|
|
|
|
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
|