19 lines
445 B
JavaScript
Raw Normal View History

2018-07-24 13:57:57 -04:00
import withFileControl from './withFileControl';
import previewComponent from './FilePreview';
import schema from './schema';
2018-07-24 13:57:57 -04:00
const controlComponent = withFileControl();
function Widget(opts = {}) {
return {
name: 'file',
controlComponent,
previewComponent,
schema,
...opts,
};
}
2019-03-27 13:47:28 -07:00
export const NetlifyCmsWidgetFile = { Widget, controlComponent, previewComponent, withFileControl };
export default NetlifyCmsWidgetFile;