2019-02-05 23:41:21 +01:00
|
|
|
import withMapControl from './withMapControl';
|
2019-03-16 15:44:29 -07:00
|
|
|
import previewComponent from './MapPreview';
|
2020-06-03 14:43:34 +01:00
|
|
|
import schema from './schema';
|
2019-03-27 13:47:28 -07:00
|
|
|
|
2019-03-16 15:44:29 -07:00
|
|
|
const controlComponent = withMapControl();
|
2021-02-08 20:01:21 +02:00
|
|
|
|
|
|
|
function Widget(opts = {}) {
|
|
|
|
return {
|
|
|
|
name: 'map',
|
|
|
|
controlComponent,
|
|
|
|
previewComponent,
|
|
|
|
schema,
|
|
|
|
...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;
|