Files
dify/web/app/components/workflow/candidate-node.tsx

21 lines
359 B
TypeScript
Raw Normal View History

2024-05-09 17:18:51 +08:00
import {
memo,
} from 'react'
2024-05-09 17:18:51 +08:00
import {
useStore,
} from './store'
import CandidateNodeMain from './candidate-node-main'
2024-05-09 17:18:51 +08:00
const CandidateNode = () => {
const candidateNode = useStore(s => s.candidateNode)
if (!candidateNode)
return null
return (
<CandidateNodeMain candidateNode={candidateNode} />
2024-05-09 17:18:51 +08:00
)
}
export default memo(CandidateNode)