13 lines
329 B
JavaScript
13 lines
329 B
JavaScript
import controlComponent from './ObjectControl';
|
|
import previewComponent from './ObjectPreview';
|
|
|
|
const Widget = (opts = {}) => ({
|
|
name: 'object',
|
|
controlComponent,
|
|
previewComponent,
|
|
...opts,
|
|
});
|
|
|
|
export const NetlifyCmsWidgetObject = { Widget, controlComponent, previewComponent };
|
|
export default NetlifyCmsWidgetObject;
|