2019-03-27 16:47:28 -04:00

14 lines
383 B
JavaScript

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