UNPKG

@botonic/plugin-flow-builder

Version:

Use Flow Builder to show your contents

22 lines 730 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Text } from '@botonic/react'; import { ContentFieldsBase } from './content-fields-base'; export class FlowAiAgent extends ContentFieldsBase { constructor() { super(...arguments); this.code = ''; this.name = ''; this.instructions = ''; this.text = ''; } static fromHubtypeCMS(component) { const newAiAgent = new FlowAiAgent(component.id); newAiAgent.name = component.content.name; newAiAgent.instructions = component.content.instructions; return newAiAgent; } toBotonic(id) { return _jsx(Text, { children: this.text }, id); } } //# sourceMappingURL=flow-ai-agent.js.map