UNPKG

@difizen/ai-flow

Version:

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

14 lines 637 B
import classNames from 'classnames'; import React from 'react'; import { memo } from 'react'; import { jsx as _jsx } from "react/jsx-runtime"; var Placeholder = function Placeholder(_ref) { var compact = _ref.compact, value = _ref.value, className = _ref.className; return /*#__PURE__*/_jsx("div", { className: classNames(className, 'absolute top-0 left-0 h-full w-full text-sm text-gray-300 select-none pointer-events-none p-3', compact ? 'leading-5 text-[13px]' : 'leading-6 text-sm'), children: value || "在这里写你的提示词,输入'{' 插入变量" }); }; export default /*#__PURE__*/memo(Placeholder);