16 lines
424 B
JavaScript
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;
|