dify/web/app/components/workflow/nodes/start-placeholder/node.tsx
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

24 lines
746 B
TypeScript

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<NodeProps> = ({ data }) => {
const { t } = useTranslation()
const descriptionKey = data.selected ? 'nodeDescription' : 'nodeCollapsedDescription'
return (
<div className="px-2.5 py-1">
<div className="rounded-md bg-workflow-block-parma-bg px-1.5 py-[5px]">
<div className="system-xs-regular wrap-break-word text-text-tertiary">
{t(($) => $[`${i18nPrefix}.${descriptionKey}`], { ns: 'workflow' })}
</div>
</div>
</div>
)
}
export default React.memo(Node)