2019-03-15 10:19:57 -04:00
|
|
|
import controlComponent from './DateTimeControl';
|
2019-09-06 06:16:55 +10:00
|
|
|
import previewComponent from './DateTimePreview';
|
2019-03-15 10:19:57 -04:00
|
|
|
|
|
|
|
const Widget = (opts = {}) => ({
|
|
|
|
name: 'datetime',
|
|
|
|
controlComponent,
|
|
|
|
previewComponent,
|
|
|
|
...opts,
|
|
|
|
});
|
|
|
|
|
2019-03-16 15:44:29 -07:00
|
|
|
export const NetlifyCmsWidgetDatetime = { Widget, controlComponent, previewComponent };
|
2019-03-27 13:47:28 -07:00
|
|
|
export default NetlifyCmsWidgetDatetime;
|