2024-05-09 17:18:51 +08:00
|
|
|
import {
|
|
|
|
|
memo,
|
|
|
|
|
} from 'react'
|
2025-11-27 15:57:36 +08:00
|
|
|
|
2024-05-09 17:18:51 +08:00
|
|
|
import {
|
|
|
|
|
useStore,
|
|
|
|
|
} from './store'
|
2025-11-27 15:57:36 +08:00
|
|
|
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 (
|
2025-11-27 15:57:36 +08:00
|
|
|
<CandidateNodeMain candidateNode={candidateNode} />
|
2024-05-09 17:18:51 +08:00
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default memo(CandidateNode)
|