use crate::void_app::{Element, Props}; #[derive(PartialEq, Props)] pub struct PoemRequest { pub slug: String, pub dark_mode: Option, } #[derive(PartialEq, Props)] pub struct DarkModeProps { pub dark_mode: bool, pub slug: Option, } #[derive(PartialEq, Props)] pub struct TitleProps { pub title: String, pub is_html: bool, } #[derive(PartialEq, Props)] pub struct ButtonProps { pub title: String, pub slug: String, } #[derive(PartialEq, Props)] pub struct PoemData { pub title: Option, pub content: Option, pub creation_date: Option, pub slug: Option, pub dark_mode: Option, } #[derive(Props)] pub struct PoemChildren<'a> { pub children: Element<'a>, }