mirror of https://github.com/langgenius/dify.git
25 lines
719 B
TypeScript
25 lines
719 B
TypeScript
import type { FC } from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { mockData } from './mock'
|
|
|
|
const i18nPrefix = 'workflow.nodes.end'
|
|
|
|
const Node: FC = () => {
|
|
const { t } = useTranslation()
|
|
const { outputs } = mockData
|
|
return (
|
|
<div className='px-3'>
|
|
<div className='flex items-center h-6 justify-between bg-gray-100 rounded-md px-1 space-x-1 text-xs font-normal text-gray-700'>
|
|
<div className='text-xs font-medium text-gray-500 uppercase'>
|
|
{t(`${i18nPrefix}.outputs`)}
|
|
</div>
|
|
<div className='text-xs font-normal text-gray-700'>
|
|
{t(`${i18nPrefix}.type.${outputs.type}`)}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Node
|