mirror of
https://github.com/langgenius/dify.git
synced 2025-12-20 01:37:36 -05:00
21 lines
359 B
TypeScript
21 lines
359 B
TypeScript
import {
|
|
memo,
|
|
} from 'react'
|
|
|
|
import {
|
|
useStore,
|
|
} from './store'
|
|
import CandidateNodeMain from './candidate-node-main'
|
|
|
|
const CandidateNode = () => {
|
|
const candidateNode = useStore(s => s.candidateNode)
|
|
if (!candidateNode)
|
|
return null
|
|
|
|
return (
|
|
<CandidateNodeMain candidateNode={candidateNode} />
|
|
)
|
|
}
|
|
|
|
export default memo(CandidateNode)
|