import { deprecationWarning } from '@craftjs/utils' ; import { Node } from '../interfaces' ; import { useInternalNode } from '../nodes/useInternalNode' ; param collect export function useNode < S = null > ( collect ? ) { const { id , related , actions , inNodeContext , connectors , ... collected } = useInternalNode ( collect ) ; return { ... collected , actions , id , related , setProp : ( cb , throttleRate ? ) => { deprecationWarning ( 'useNode().setProp()' , { suggest : 'useNode().actions.setProp()' , } ) ; return actions . setProp ( cb , throttleRate ) ; } , inNodeContext , connectors , } ; }