import { memo, useState, } from 'react' import { useTranslation } from 'react-i18next' import { RiArrowDownSLine } from '@remixicon/react' const UserInput = () => { const { t } = useTranslation() const [expanded, setExpanded] = useState(true) const variables: any = [] if (!variables.length) return null return (
setExpanded(!expanded)} > {t('workflow.panel.userInputField').toLocaleUpperCase()}
{ expanded && (
{ variables.map((variable: any) => (
)) }
) }
) } export default memo(UserInput)