You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: use_selected_node.rs
    path of file: ./repos/freya/crates/devtools/src/hooks
    
    the code of the file until where you have to start completion: use dioxus::prelude::*;
use dioxus_native_core::NodeId;

use crate::TreeNode;

pub fn use_selected_node(node_id: &NodeId) -> Option<TreeNode> {
    let children
    
pub fn use_selected_node(node_id: &NodeId) -> Option<TreeNode> {
    let children = use_context::<Signal<Vec<TreeNode>>>();
    let children = children.read();

    let node = children.iter().find(|node| &node.id == node_id)?;

    Some(node.clone())
}