use dioxus::prelude::*;

mod footer;
mod header;

use crate::{Body, Route};
use footer::Footer;
use header::Header;

pub fn Layout() -> Element {
    rsx! {
        div {
            class: "flex flex-col min-h-screen" ,
            Header {},
            Body {
                Outlet::<Route> {},
            }
            Footer {},
        }
    }
}
