use leptos::*; use uuid::Uuid; use crate::features::navbar_projects::gen::queries::get_projects_list_view::GetProjectsListViewGetProjects; use crate::features::navbar_projects::NavbarProjectsView; #[component] pub fn FeaturesView() -> impl IntoView { let projects = create_local_resource( || (), |_| async { vec![ GetProjectsListViewGetProjects { id: Uuid::new_v4(), name: "some-name".to_string(), }, GetProjectsListViewGetProjects { id: Uuid::new_v4(), name: "some-other-name".to_string(), }, ] }, ); let emptyProjects: Resource<(), Vec> = create_local_resource(|| (), |_| async { Vec::new() }); view! {

"NavbarProjects"

"Projects"

"no projects"

} }