import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' import InputVarTypeIcon from '../_base/components/input-var-type-icon' import type { StartNodeType } from './types' import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development' import type { NodeProps } from '@/app/components/workflow/types' const i18nPrefix = 'workflow.nodes.start' const Node: FC> = ({ data, }) => { const { t } = useTranslation() const { variables } = data if (!variables.length) return null return (
{variables.map(variable => (
{variable.variable}
{variable.required && {t(`${i18nPrefix}.required`)}}
))}
) } export default React.memo(Node)