2019-03-27 13:47:28 -07:00
|
|
|
import NetlifyCmsWidgetObject from 'netlify-cms-widget-object';
|
2021-05-31 16:46:41 +02:00
|
|
|
|
|
|
|
import controlComponent from './ListControl';
|
2020-06-03 14:43:34 +01:00
|
|
|
import schema from './schema';
|
2019-03-27 13:47:28 -07:00
|
|
|
|
|
|
|
const previewComponent = NetlifyCmsWidgetObject.previewComponent;
|
2021-02-08 20:01:21 +02:00
|
|
|
|
|
|
|
function Widget(opts = {}) {
|
|
|
|
return {
|
|
|
|
name: 'list',
|
|
|
|
controlComponent,
|
|
|
|
previewComponent,
|
|
|
|
schema,
|
|
|
|
...opts,
|
|
|
|
};
|
|
|
|
}
|
2019-03-27 13:47:28 -07:00
|
|
|
|
|
|
|
export const NetlifyCmsWidgetList = { Widget, controlComponent, previewComponent };
|
|
|
|
export default NetlifyCmsWidgetList;
|