use leptos::{IntoView, component, view}; use crate::{ api::recipes_wrapped, components::{async_fetch::AsyncFetch, container::Container, icon_p::IconP}, }; #[component] pub fn Recipies() -> impl IntoView { view! { }, "recipies"), (view! { }, "create-recipe"), (view! { }, "mealplan"), ] > { AsyncFetch! { @map_error_in_producer fetcher = recipes_wrapped(), producer = |recipes| { view! {

{format!("You have {} recipies.", recipes.len())}

} } } }
} }