14 lines
383 B
JavaScript
Raw Normal View History

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