use uuid::Uuid; use yew::prelude::*; use yew_router::prelude::use_navigator; use crate::routes::main_router::Route; #[function_component(ProjectCard)] pub fn project_card() -> Html { let navigator = use_navigator().unwrap(); let project_view_cb = Callback::from(move |_|{ navigator.push(&Route::Details { property_id: Uuid::default() }); }); html!{