import React from 'react' import Modal from './Modal' import Heading from '../Heading' import InputBlock from '../inputs/InputBlock' import StringInput from '../inputs/StringInput' import publicSources from '../../config/tilesets.json' import colors from '../../config/colors' import { margins } from '../../config/scales' class PublicSource extends React.Component { static propTypes = { id: React.PropTypes.string.isRequired, type: React.PropTypes.string.isRequired, title: React.PropTypes.string.isRequired, description: React.PropTypes.string.isRequired, onSelect: React.PropTypes.func.isRequired, } render() { return
{this.props.title} #{this.props.id}

{this.props.description}

} } class SourceEditor extends React.Component { static propTypes = { sourceId: React.PropTypes.string.isRequired, source: React.PropTypes.object.isRequired, } render() { const inputProps = { style: { backgroundColor: colors.midgray } } return
} } class SourcesModal extends React.Component { static propTypes = { mapStyle: React.PropTypes.object.isRequired, isOpen: React.PropTypes.bool.isRequired, toggle: React.PropTypes.func.isRequired, } render() { const activeSources = Object.keys(this.props.mapStyle.sources).map(sourceId => { const source = this.props.mapStyle.sources[sourceId] return }) const tilesetOptions = publicSources.map(tileset => { return }) const inputProps = { style: { backgroundColor: colors.midgray } } return Active Sources {activeSources} Add New Source Choose Public Source
{tilesetOptions}
} } export default SourcesModal