use yew::prelude::{html, Component, Context, Html, Properties};
pub struct NormalWeight {}
#[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 NormalWeight {
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={ "NormalWeight" }
viewBox={ "0 0 16 16" }
fill={ props.fill.unwrap_or("currentColor") }
style={ style }
>
<path d="M1536 1313q0 115-44 204t-118 149-173 92-205 32H512V128h473q88 0 172 22t150 68 106 118 40 172q0 69-19 132t-57 114-91 90-121 58v5q84 9 152 41t117 85 75 124 27 156zM707 304v536h198q72 0 134-16t109-52 73-91 27-134q0-72-26-119t-70-74-101-39-120-11H707zm625 1006q0-90-34-147t-91-89-129-45-149-12H707v597h263q73 0 138-17t115-54 79-94 30-139z" />
</svg>
}
}
}