import { types, wrapClientComponent } from ' react-bricks/rsc '
import { RegisterComponent } from ' react-bricks/rsc/client '
import MapClient, { MapProps } from ' ./MapClient '
const MAPTILER_ACCESS_TOKEN = '' // Insert access token
const schema : types . IBlockType < MapProps > = {
tags: [ ' contacts ' , ' map ' ] ,
playgroundLinkLabel: ' View source code on Github ' ,
' https://github.com/ReactBricks/react-bricks-ui/blob/master/src/website/Map/Map.tsx ' ,
previewImageUrl: ` /bricks-preview-images/map.png ` ,
getDefaultProps : () => ( {
type: types . SideEditPropType . Number ,
type: types . SideEditPropType . Number ,
type: types . SideEditPropType . Number ,
type: types . SideEditPropType . Custom ,
show : () => ! MAPTILER_ACCESS_TOKEN ,
if ( ! MAPTILER_ACCESS_TOKEN ) {
For better maps, please create a MapTiler free account and set the { ' ' }
< code className = " text-xs " > MAPTILER_ACCESS_TOKEN </ code > string.
export default wrapClientComponent ({
ClientComponent: MapClient,