chore: refine named exports (#2249)
This commit is contained in:
committed by
Shawn Erquhart
parent
4db497b496
commit
b4041d3971
@ -2,5 +2,12 @@ import withFileControl from './withFileControl';
|
||||
import previewComponent from './FilePreview';
|
||||
|
||||
const controlComponent = withFileControl();
|
||||
export const NetlifyCmsWidgetFile = { controlComponent, previewComponent, withFileControl };
|
||||
export { controlComponent, previewComponent, withFileControl };
|
||||
const Widget = (opts = {}) => ({
|
||||
name: 'file',
|
||||
controlComponent,
|
||||
previewComponent,
|
||||
...opts,
|
||||
});
|
||||
|
||||
export const NetlifyCmsWidgetFile = { Widget, controlComponent, previewComponent, withFileControl };
|
||||
export default NetlifyCmsWidgetFile;
|
||||
|
Reference in New Issue
Block a user