diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx index cc71969dcd..22e09a8b1a 100644 --- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx +++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx @@ -2,8 +2,8 @@ import VarReferencePicker from '@/app/components/workflow/nodes/_base/components/variable/var-reference-picker' import type { ValueSelector } from '@/app/components/workflow/types' import type { FC } from 'react' -import React from 'react' -import { useTranslation } from 'react-i18next' +import React, { useCallback, useState } from 'react' +import { Trans, useTranslation } from 'react-i18next' import Textarea from '../../../textarea' import TagLabel from './tag-label' import cn from '@/utils/classnames' @@ -21,18 +21,24 @@ type Props = { const i18nPrefix = 'workflow.nodes.humanInput.insertInputField' -const Placeholder = () => { +type PlaceholderProps = { + onTypeClick: (isVariable: boolean) => void +} +const Placeholder = ({ + onTypeClick, +}: PlaceholderProps) => { const { t } = useTranslation() return ( -