import React from 'react' import InputBlock from '../inputs/InputBlock' import StringInput from '../inputs/StringInput' import colors from '../../config/colors' import { margins, fontSizes } from '../../config/scales' function renderProperties(feature) { return Object.keys(feature.properties).map(propertyName => { const property = feature.properties[propertyName] return }) } const Panel = (props) => { return
{props.children}
} function renderFeature(feature) { return
Source Layers Properties {renderProperties(feature)}
} class FeatureLayerTable extends React.Component { render() { const features = this.props.features return
{features.map(renderFeature)}
} } export default FeatureLayerTable