import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' import type { EndNodeType } from './types' import type { NodeProps } from '@/app/components/workflow/types' const i18nPrefix = 'workflow.nodes.end' const Node: FC> = ({ data, }) => { const { t } = useTranslation() const { outputs } = data return (
{t(`${i18nPrefix}.outputs`)}
{t(`${i18nPrefix}.type.${outputs.type}`)}
) } export default React.memo(Node)