import React from 'react' import Select from 'rebass/dist/Select' import Overlay from 'rebass/dist/Overlay' import Panel from 'rebass/dist/Panel' import PanelHeader from 'rebass/dist/PanelHeader' import PanelFooter from 'rebass/dist/PanelFooter' import Button from 'rebass/dist/Button' import Text from 'rebass/dist/Text' import Media from 'rebass/dist/Media' import Close from 'rebass/dist/Close' import Space from 'rebass/dist/Space' import Input from 'rebass/dist/Input' class SettingsModal extends React.Component { static propTypes = { mapStyle: React.PropTypes.object.isRequired, onStyleChanged: React.PropTypes.func.isRequired, open: 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() { return Style Settings