2018-07-24 13:57:57 -04:00
|
|
|
import withFileControl from './withFileControl';
|
2019-03-16 15:44:29 -07:00
|
|
|
import previewComponent from './FilePreview';
|
2018-07-24 13:57:57 -04:00
|
|
|
|
2019-03-16 15:44:29 -07: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;
|