2020-10-25 18:47:35 +01:00
|
|
|
import controlComponent from './ColorControl';
|
|
|
|
import previewComponent from './ColorPreview';
|
|
|
|
|
|
|
|
const Widget = (opts = {}) => ({
|
|
|
|
name: 'color',
|
|
|
|
controlComponent,
|
|
|
|
previewComponent,
|
|
|
|
...opts,
|
|
|
|
});
|
|
|
|
|
2020-10-25 20:16:12 +01:00
|
|
|
export const NetlifyCmsWidgetColorString = { Widget, controlComponent, previewComponent };
|
|
|
|
export default NetlifyCmsWidgetColorString;
|