mirror of
https://github.com/maputnik/editor.git
synced 2025-12-26 08:00:01 +00:00
22 lines
469 B
JavaScript
22 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
|