use yew::{AttrValue, Callback, Html, Properties, function_component, html};
#[derive(PartialEq, Clone, Properties)]
pub struct SidebarCloseButtonProps {
pub on_close_sidebar: Callback<()>,
pub id: AttrValue,
}
#[function_component]
pub fn SidebarCloseButton(p: &SidebarCloseButtonProps) -> Html {
let onclick = yew::use_callback(p.on_close_sidebar.clone(), |_, cb| cb.emit(()));
let id = &p.id;
html! {
<div {onclick} {id} class="sidebar_close_button">
<div class="sidebar_close_button_inner"><span class="icon" /></div>
</div>
}
}