// Import core WordPress dependencies import { useBlockProps } from '@wordpress/block-editor'; import { BlockSaveProps } from '@wordpress/blocks'; // Import utilities import { getMapUrl } from './utilities'; // Import types import { MapSettings } from './types'; // Define the HTML outputted by the block on save const save: React.ComponentType> = function ({ attributes }) { const blockProps = useBlockProps.save(); return (
{ attributes.mapmode === 'themed' ? attributes.key === 'AIzaSyCRspsEADhOoOF4c2LhYKu_IAB0orV9ExA' ?

You must set your own Google Maps API key and enable the Google Maps JavaScript API to use themed maps.

:
: }
); }; export default save;