use leptos::{ IntoView, component, prelude::{ClassAttribute, ElementChild, Signal}, view, }; use leptos_icons::Icon; #[component] pub fn IconP(#[prop(into)] icon: Signal, text: &'static str) -> impl IntoView { view! {

{text}

} }