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, toggle: 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(e) { const changedStyle = this.props.mapStyle.setIn(['metadata', 'maputnik:renderer'], e.target.value) this.props.onStyleChanged(changedStyle) } render() { const inputProps = { style: { backgroundColor: colors.midgray } } return } } export default SettingsModal