2019-02-05 23:41:21 +01:00
|
|
|
import withMapControl from './withMapControl';
|
2019-03-16 15:44:29 -07:00
|
|
|
import previewComponent from './MapPreview';
|
2019-03-27 13:47:28 -07:00
|
|
|
|
2019-03-16 15:44:29 -07:00
|
|
|
const controlComponent = withMapControl();
|
2019-03-27 13:47:28 -07:00
|
|
|
const Widget = (opts = {}) => ({
|
|
|
|
name: 'map',
|
|
|
|
controlComponent,
|
|
|
|
previewComponent,
|
|
|
|
...opts,
|
|
|
|
});
|
2019-02-05 23:41:21 +01:00
|
|
|
|
2019-03-27 13:47:28 -07:00
|
|
|
export const NetlifyCmsWidgetMap = { Widget, controlComponent, previewComponent };
|
|
|
|
export default NetlifyCmsWidgetMap;
|