use yew::{function_component, html, Callback, Children, MouseEvent, Properties};
#[derive(Properties, PartialEq)]
pub struct LinkProps {
#[prop_or_default]
pub children: Children,
#[prop_or_default]
pub href: String,
#[prop_or_default]
pub onclick: Callback,
}
#[function_component(Link)]
pub fn link(
LinkProps {
children,
href,
onclick,
}: &LinkProps,
) -> Html {
html! {
{ for children.iter() }
}
}