2020-06-03 16:43:34 +03:00

16 lines
424 B
JavaScript

import withFileControl from './withFileControl';
import previewComponent from './FilePreview';
import schema from './schema';
const controlComponent = withFileControl();
const Widget = (opts = {}) => ({
name: 'file',
controlComponent,
previewComponent,
schema,
...opts,
});
export const NetlifyCmsWidgetFile = { Widget, controlComponent, previewComponent, withFileControl };
export default NetlifyCmsWidgetFile;