pub mod container;
pub mod icon;
pub mod text;
pub use container::*;
pub use icon::*;
pub use text::*;
#[derive(Debug, Clone, PartialEq, PartialOrd)]
pub enum Components {
Container(Container),
Text(Text),
Icon(Icon),
}
impl From<&Components> for Components {
fn from(value: &Components) -> Self {
value.clone()
}
}
impl From<Container> for Components {
fn from(value: Container) -> Self {
Self::Container(value)
}
}
impl From<Text> for Components {
fn from(value: Text) -> Self {
Self::Text(value)
}
}
impl From<Icon> for Components {
fn from(value: Icon) -> Self {
Self::Icon(value)
}
}
impl Default for Components {
fn default() -> Self {
Self::Container(Container::default())
}
}