maputnik/src/components/fields/_DeleteStopButton.jsx
2018-10-06 16:38:08 +01:00

25 lines
516 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import DocLabel from './DocLabel'
import Button from '../Button'
import {MdDelete} from 'react-icons/md'
export default class DeleteStopButton extends React.Component {
static propTypes = {
onClick: PropTypes.func,
}
render() {
return <Button
className="maputnik-delete-stop"
onClick={this.props.onClick}
>
<DocLabel
label={<MdDelete />}
doc={"Remove zoom level stop."}
/>
</Button>
}
}