mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-10 13:20:00 +01:00
25 lines
538 B
React
25 lines
538 B
React
|
import React from 'react'
|
||
|
|
||
|
import InputBlock from '../inputs/InputBlock'
|
||
|
import StringInput from '../inputs/StringInput'
|
||
|
|
||
|
class MetadataBlock extends React.Component {
|
||
|
static propTypes = {
|
||
|
value: React.PropTypes.string,
|
||
|
onChange: React.PropTypes.func.isRequired,
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
return <InputBlock label={"Comments"}>
|
||
|
<StringInput
|
||
|
multi={true}
|
||
|
value={this.props.value}
|
||
|
onChange={this.props.onChange}
|
||
|
default="Comment..."
|
||
|
/>
|
||
|
</InputBlock>
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default MetadataBlock
|