19 lines
421 B
JavaScript
Raw Normal View History

import withMapControl from './withMapControl';
import previewComponent from './MapPreview';
import schema from './schema';
2019-03-27 13:47:28 -07:00
const controlComponent = withMapControl();
function Widget(opts = {}) {
return {
name: 'map',
controlComponent,
previewComponent,
schema,
...opts,
};
}
2019-03-27 13:47:28 -07:00
export const NetlifyCmsWidgetMap = { Widget, controlComponent, previewComponent };
export default NetlifyCmsWidgetMap;