use yew::prelude::*;
use super::save_settings::{SaveSettings, SaveSettingsProps};
use crate::components::window_editor::{WindowEditor, WindowEditorProps};
#[derive(PartialEq, Properties, Clone)]
pub struct WindowTabProps {
pub editor: WindowEditorProps,
pub save_section: SaveSettingsProps,
}
#[function_component]
pub fn WindowTab(p: &WindowTabProps) -> Html {
html! {
<div id="window-tab">
<div class="tab-section" id="window-editor-section">
<WindowEditor ..p.editor.clone() />
</div>
<div class="tab-section"><SaveSettings ..p.save_section.clone() /></div>
</div>
}
}