use yew::prelude::{html, Component, Context, Html, Properties};
pub struct Rerun {}
#[derive(Properties, Debug, Clone, PartialEq, Eq)]
pub struct Props {
#[prop_or_default]
pub class: Option<&'static str>,
#[prop_or_default]
pub width: Option<&'static str>,
#[prop_or_default]
pub height: Option<&'static str>,
#[prop_or_default]
pub color: Option<&'static str>,
#[prop_or_default]
pub fill: Option<&'static str>,
#[prop_or_default]
pub spin: bool,
#[prop_or_default]
pub rotate: i16,
}
impl Component for Rerun {
type Properties = Props;
type Message = ();
fn create(_ctx: &Context<Self>) -> Self {
Self {}
}
fn view(&self, ctx: &Context<Self>) -> Html {
let props = ctx.props();
let mut style = String::new();
if props.rotate != 0 {
style += &format!("transform: rotate({}deg);", props.rotate);
}
html! {
<svg
xmlns={ "http://www.w3.org/2000/svg" }
class={ props.class.unwrap_or("") }
width={ props.width.unwrap_or("16") }
height={ props.height.unwrap_or("16") }
focusable={ "false" }
data-icon={ "Rerun" }
viewBox={ "0 0 16 16" }
fill={ props.fill.unwrap_or("currentColor") }
style={ style }
>
<path d="M1152 640V512h421l-107-107-108-108q-81-80-182-122t-216-43q-79 0-151 21t-136 58-116 91-89 117-58 137-21 151q0 112 42 214t122 181l599 599v182l-690-690q-97-97-149-224t-53-265q0-96 25-185t72-167 110-142 143-109 167-71T963 5q125 0 219 34t174 91 153 133 155 158V0h128v640h-640zm128 512l768 448-768 448v-896zm128 223v450l386-225-386-225z" />
</svg>
}
}
}