import React from 'react' import InputBlock from '../inputs/InputBlock' import StringInput from '../inputs/StringInput' import SelectInput from '../inputs/SelectInput' import Modal from './Modal' import colors from '../../config/colors' class SettingsModal extends React.Component { static propTypes = { mapStyle: React.PropTypes.object.isRequired, onStyleChanged: React.PropTypes.func.isRequired, isOpen: React.PropTypes.bool.isRequired, onOpenToggle: React.PropTypes.func.isRequired, } constructor(props) { super(props); } onChange(property, e) { const changedStyle = this.props.mapStyle.set(property, e.target.value) this.props.onStyleChanged(changedStyle) } onRendererChange(renderer) { const changedStyle = { ...this.props.mapStyle, metadata: { ...this.props.mapStyle.metadata, 'maputnik:renderer': renderer, } } this.props.onStyleChanged(changedStyle) } render() { const inputProps = { } return } } export default SettingsModal