import React from 'react' import theme from './theme.js' import { Heading, Container, Input, Toolbar, NavItem, Space } from 'rebass' import Immutable from 'immutable' /** Edit global settings within a style such as the name */ export class SettingsEditor extends React.Component { static propTypes = { mapStyle: React.PropTypes.instanceOf(Immutable.Map).isRequired, onStyleChanged: React.PropTypes.func.isRequired } onChange(property, e) { const changedStyle = this.props.mapStyle.set(property, e.target.value) this.props.onStyleChanged(changedStyle) } render() { return