UNPKG

@botonic/plugin-flow-builder

Version:

Use Flow Builder to show your contents

20 lines 669 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Video } from '@botonic/react'; import { ContentFieldsBase } from './content-fields-base'; export class FlowVideo extends ContentFieldsBase { constructor() { super(...arguments); this.src = ''; this.code = ''; } static fromHubtypeCMS(component, locale) { const newVideo = new FlowVideo(component.id); newVideo.code = component.code; newVideo.src = this.getVideoByLocale(locale, component.content.video); return newVideo; } toBotonic(id) { return _jsx(Video, { src: this.src }, id); } } //# sourceMappingURL=flow-video.js.map