All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
20 lines
456 B
JavaScript
20 lines
456 B
JavaScript
import DecapCmsWidgetObject from 'decap-cms-widget-object';
|
|
|
|
import controlComponent from './ListControl';
|
|
import schema from './schema';
|
|
|
|
const previewComponent = DecapCmsWidgetObject.previewComponent;
|
|
|
|
function Widget(opts = {}) {
|
|
return {
|
|
name: 'list',
|
|
controlComponent,
|
|
previewComponent,
|
|
schema,
|
|
...opts,
|
|
};
|
|
}
|
|
|
|
export const DecapCmsWidgetList = { Widget, controlComponent, previewComponent };
|
|
export default DecapCmsWidgetList;
|