2017-03-07 13:24:15 +01:00
|
|
|
import React from 'react'
|
2017-11-06 16:32:04 +01:00
|
|
|
import PropTypes from 'prop-types'
|
2017-03-07 13:24:15 +01:00
|
|
|
|
|
|
|
import InputBlock from '../inputs/InputBlock'
|
|
|
|
import StringInput from '../inputs/StringInput'
|
|
|
|
|
|
|
|
class MetadataBlock extends React.Component {
|
|
|
|
static propTypes = {
|
2017-11-06 16:32:04 +01:00
|
|
|
value: PropTypes.string,
|
|
|
|
onChange: PropTypes.func.isRequired,
|
2017-03-07 13:24:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
2017-10-10 23:34:16 +02:00
|
|
|
return <InputBlock label={"Comments"} doc={"Comments for the current layer. This is non-standard and not in the spec."}>
|
2017-03-07 13:24:15 +01:00
|
|
|
<StringInput
|
|
|
|
multi={true}
|
|
|
|
value={this.props.value}
|
|
|
|
onChange={this.props.onChange}
|
|
|
|
default="Comment..."
|
|
|
|
/>
|
|
|
|
</InputBlock>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MetadataBlock
|