mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-09 23:41:51 +01:00
29 lines
694 B
JavaScript
29 lines
694 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
|
|
import InputBlock from '../inputs/InputBlock'
|
|
import StringInput from '../inputs/StringInput'
|
|
|
|
class MetadataBlock extends React.Component {
|
|
static propTypes = {
|
|
value: PropTypes.string,
|
|
onChange: PropTypes.func.isRequired,
|
|
}
|
|
|
|
render() {
|
|
return <InputBlock
|
|
label={"Comments"}
|
|
doc={"Comments for the current layer. This is non-standard and not in the spec."}
|
|
data-wd-key="layer-comment"
|
|
>
|
|
<StringInput
|
|
multi={true}
|
|
value={this.props.value}
|
|
onChange={this.props.onChange}
|
|
default="Comment..."
|
|
/>
|
|
</InputBlock>
|
|
}
|
|
}
|
|
|
|
export default MetadataBlock
|