import type { FC } from 'react' import type { StartNodeType } from './types' import type { NodeProps } from '@/app/components/workflow/types' import * as React from 'react' import { useTranslation } from 'react-i18next' import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development' import InputVarTypeIcon from '../_base/components/input-var-type-icon' const i18nPrefix = '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`, { ns: 'workflow' })}}
))}
) } export default React.memo(Node)