patternfly_yew/components/progress_stepper/child.rs
1use super::{ProgressStepperStep, ProgressStepperStepProperties};
2use std::rc::Rc;
3use yew::BaseComponent;
4
5#[derive(Clone, PartialEq)]
6pub enum ProgressStepperChild {
7 Step(Rc<<ProgressStepperStep as BaseComponent>::Properties>),
8}
9
10impl From<ProgressStepperStepProperties> for ProgressStepperChild {
11 fn from(props: ProgressStepperStepProperties) -> Self {
12 ProgressStepperChild::Step(Rc::new(props))
13 }
14}