plate-tool/src/components/plates/plate_container.rs

21 lines
609 B
Rust
Raw Normal View History

2023-05-21 16:45:12 +00:00
#![allow(non_snake_case)]
use yew::prelude::*;
use super::source_plate::SourcePlate;
2023-05-21 16:45:12 +00:00
use super::destination_plate::DestinationPlate;
#[derive(Properties, PartialEq)]
pub struct PlateContainerProps {
pub source_dims: (u8,u8),
pub destination_dims: (u8,u8)
}
2023-05-21 16:45:12 +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
}