UNPKG

@difizen/ai-flow

Version:

Scalable, out-of-the-box, agent-oriented flow

25 lines 708 B
import { CaretRightOutlined } from '@ant-design/icons'; import { Collapse } from 'antd'; import React from 'react'; import { jsx as _jsx } from "react/jsx-runtime"; export var CollapseWrapper = function CollapseWrapper(props) { var label = props.label, children = props.children, className = props.className; return /*#__PURE__*/_jsx(Collapse, { className: className, bordered: false, defaultActiveKey: ['1'], expandIcon: function expandIcon(_ref) { var isActive = _ref.isActive; return /*#__PURE__*/_jsx(CaretRightOutlined, { rotate: isActive ? 90 : 0 }); }, items: [{ key: '1', label: label, children: children }] }); };