mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-18 03:00:29 +01:00
23 lines
497 B
React
23 lines
497 B
React
|
import React from 'react'
|
||
|
|
||
|
import InputBlock from '../inputs/InputBlock'
|
||
|
import StringInput from '../inputs/StringInput'
|
||
|
|
||
|
class LayerIdBlock extends React.Component {
|
||
|
static propTypes = {
|
||
|
value: React.PropTypes.string.isRequired,
|
||
|
onChange: React.PropTypes.func.isRequired,
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
return <InputBlock label={"Layer ID"}>
|
||
|
<StringInput
|
||
|
value={this.props.value}
|
||
|
onChange={this.props.onChange}
|
||
|
/>
|
||
|
</InputBlock>
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default LayerIdBlock
|