/** * External dependencies */ import { Component } from '@wordpress/element'; class MapSave extends Component { render() { const { attributes } = this.props; const { align, mapStyle, mapDetails, points, zoom, mapCenter, markerColor } = attributes; const pointsList = points.map( ( point, index ) => { const { longitude, latitude } = point.coordinates; const url = 'https://www.google.com/maps/search/?api=1&query=' + latitude + ',' + longitude; return (
  • { point.title }
  • ); } ); const alignClassName = align ? `align${ align }` : null; // All camelCase attribute names converted to snake_case data attributes return (
    { points.length > 0 && }
    ); } } export default MapSave;