2019-03-16 15:44:29 -07:00
|
|
|
import controlComponent from './TextControl';
|
|
|
|
import previewComponent from './TextPreview';
|
|
|
|
|
2021-02-08 20:01:21 +02:00
|
|
|
function Widget(opts = {}) {
|
|
|
|
return {
|
|
|
|
name: 'text',
|
|
|
|
controlComponent,
|
|
|
|
previewComponent,
|
|
|
|
...opts,
|
|
|
|
};
|
|
|
|
}
|
2019-03-27 13:47:28 -07:00
|
|
|
|
|
|
|
export const NetlifyCmsWidgetText = { Widget, controlComponent, previewComponent };
|
|
|
|
export default NetlifyCmsWidgetText;
|