19 lines
421 B
JavaScript
19 lines
421 B
JavaScript
import withMapControl from './withMapControl';
|
|
import previewComponent from './MapPreview';
|
|
import schema from './schema';
|
|
|
|
const controlComponent = withMapControl();
|
|
|
|
function Widget(opts = {}) {
|
|
return {
|
|
name: 'map',
|
|
controlComponent,
|
|
previewComponent,
|
|
schema,
|
|
...opts,
|
|
};
|
|
}
|
|
|
|
export const NetlifyCmsWidgetMap = { Widget, controlComponent, previewComponent };
|
|
export default NetlifyCmsWidgetMap;
|