use crate::*;
#[derive(Clone, Copy, Data, New)]
pub(crate) struct UsePropsDemo {
#[get(pub, type(copy))]
pub(crate) parent_message: Signal<String>,
#[get(pub, type(copy))]
pub(crate) child_response: Signal<String>,
}
#[derive(Clone, Copy, Data, New)]
pub(crate) struct UseTwoWayDemo {
#[get(pub, type(copy))]
pub(crate) shared_text: Signal<String>,
#[get(pub, type(copy))]
pub(crate) shared_count: Signal<i32>,
}
#[derive(Clone, Copy, Data, New)]
pub(crate) struct UseCrossComponentDemo {
#[get(pub, type(copy))]
pub(crate) celsius: Signal<f64>,
#[get(pub, type(copy))]
pub(crate) fahrenheit: Signal<f64>,
#[get(pub, type(copy))]
pub(crate) red: Signal<i32>,
#[get(pub, type(copy))]
pub(crate) green: Signal<i32>,
#[get(pub, type(copy))]
pub(crate) blue: Signal<i32>,
#[get(pub, type(copy))]
pub(crate) hex_color: Signal<String>,
}
#[derive(Clone, Copy, Data, New)]
pub(crate) struct UseTypedPropsDemo {
#[get(pub, type(copy))]
pub(crate) disabled: Signal<bool>,
#[get(pub, type(copy))]
pub(crate) max_count: Signal<i32>,
#[get(pub, type(copy))]
pub(crate) current_count: Signal<i32>,
}
#[derive(Clone, Copy, Data, New)]
pub(crate) struct UseCustomCallbackDemo {
#[get(pub, type(copy))]
pub(crate) text_value: Signal<String>,
#[get(pub, type(copy))]
pub(crate) last_event: Signal<String>,
}