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

21 lines
642 B
Rust
Raw Normal View History

2023-05-21 16:45:12 +00:00
#![allow(non_snake_case)]
use dioxus::prelude::*;
use super::source_plate::SourcePlate;
use super::destination_plate::DestinationPlate;
static STYLE: &'static str = include_str!("plate_container.css");
#[inline_props]
pub fn PlateContainer(cx: Scope, source_dims: (u8,u8), destination_dims: (u8,u8)) -> Element {
cx.render(rsx! {
style { STYLE }
div {
class: "plate_container",
SourcePlate {width: source_dims.0,
height: source_dims.1},
DestinationPlate {width: destination_dims.0,
height: destination_dims.1}
}
})
}