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