1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use std::collections::HashSet;

use dioxus_radio::prelude::*;
use freya_native_core::prelude::NodeId;
use freya_renderer::{
    devtools::DevtoolsReceiver,
    HoveredNode,
};

pub struct DevtoolsState {
    pub(crate) hovered_node: HoveredNode,
    pub(crate) devtools_receiver: DevtoolsReceiver,
    pub(crate) devtools_tree: HashSet<NodeId>,
}

#[derive(PartialEq, Eq, Clone, Debug)]
pub enum DevtoolsChannel {
    Global,
    UpdatedDOM,
}

impl RadioChannel<DevtoolsState> for DevtoolsChannel {}