Files
2021-05-31 17:46:41 +03:00

20 lines
483 B
JavaScript

import NetlifyCmsWidgetFile from 'netlify-cms-widget-file';
import previewComponent from './ImagePreview';
import schema from './schema';
const controlComponent = NetlifyCmsWidgetFile.withFileControl({ forImage: true });
function Widget(opts = {}) {
return {
name: 'image',
controlComponent,
previewComponent,
schema,
...opts,
};
}
export const NetlifyCmsWidgetImage = { Widget, controlComponent, previewComponent };
export default NetlifyCmsWidgetImage;