import type { FC } from 'react' import type { NodeProps } from '@/app/components/workflow/types' import * as React from 'react' import { useTranslation } from 'react-i18next' const i18nPrefix = 'nodes.startPlaceholder' const Node: FC = ({ data, }) => { const { t } = useTranslation() const descriptionKey = data.selected ? 'nodeDescription' : 'nodeCollapsedDescription' return (
{t(`${i18nPrefix}.${descriptionKey}`, { ns: 'workflow' })}
) } export default React.memo(Node)