16 lines
400 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();
2019-03-27 13:47:28 -07:00
const Widget = (opts = {}) => ({
name: 'map',
controlComponent,
previewComponent,
schema,
2019-03-27 13:47:28 -07:00
...opts,
});
2019-03-27 13:47:28 -07:00
export const NetlifyCmsWidgetMap = { Widget, controlComponent, previewComponent };
export default NetlifyCmsWidgetMap;