UNPKG

@botonic/plugin-flow-builder

Version:

Use Flow Builder to show your contents

26 lines 925 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FlowAiAgent = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = require("@botonic/react"); const content_fields_base_1 = require("./content-fields-base"); class FlowAiAgent extends content_fields_base_1.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 (0, jsx_runtime_1.jsx)(react_1.Text, { children: this.text }, id); } } exports.FlowAiAgent = FlowAiAgent; //# sourceMappingURL=flow-ai-agent.js.map