2023-05-21 16:45:12 +00:00
|
|
|
#![allow(non_snake_case)]
|
2023-05-22 15:26:08 +00:00
|
|
|
use yew::prelude::*;
|
|
|
|
use super::source_plate::SourcePlate;
|
2023-05-21 16:45:12 +00:00
|
|
|
use super::destination_plate::DestinationPlate;
|
|
|
|
|
2023-05-22 15:26:08 +00:00
|
|
|
#[derive(Properties, PartialEq)]
|
|
|
|
pub struct PlateContainerProps {
|
|
|
|
pub source_dims: (u8,u8),
|
|
|
|
pub destination_dims: (u8,u8)
|
|
|
|
}
|
2023-05-21 16:45:12 +00:00
|
|
|
|
2023-05-22 15:26:08 +00:00
|
|
|
#[function_component]
|
|
|
|
pub fn PlateContainer(props: &PlateContainerProps) -> Html {
|
|
|
|
html! {
|
|
|
|
<div class="plate_container">
|
|
|
|
<SourcePlate width={props.source_dims.0} height={props.source_dims.1} />
|
|
|
|
<DestinationPlate width={props.destination_dims.0} height={props.destination_dims.1} />
|
|
|
|
</div>
|
|
|
|
}
|
2023-05-21 16:45:12 +00:00
|
|
|
}
|