#![allow(non_snake_case)] use yew::prelude::*; use crate::data::plate_instances::PlateInstance; use super::source_plate::SourcePlate; use super::destination_plate::DestinationPlate; #[derive(Properties, PartialEq)] pub struct PlateContainerProps { pub source_dims: Option, pub destination_dims: Option, } #[function_component] pub fn PlateContainer(props: &PlateContainerProps) -> Html { html! {
if let Some(spi) = props.source_dims.clone() {

{spi.name.clone()}

} else {

{"No Source Plate Selected"}

} if let Some(dpi) = props.destination_dims.clone() {

{dpi.name.clone()}

} else {

{"No Destination Plate Selected"}

}
} }