use yew::prelude::{html, Component, Context, Html, Properties};
pub struct AutoEnhanceOff {}
#[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 AutoEnhanceOff {
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={ "AutoEnhanceOff" }
viewBox={ "0 0 16 16" }
fill={ props.fill.unwrap_or("currentColor") }
style={ style }
>
<path d="M1939 1235l90 90-685 686-365-366 90-90 275 274 595-594zM0 1984q0-26 19-45L1235 723q19-19 45-19t45 19 19 45q0 26-19 45L109 2029q-19 19-45 19t-45-19-19-45zM1408 0h128v256h-128V0zm-207 395l-182-181 91-91 181 182-90 90zm-49 245H896V512h256v128zm256 256h128v256h-128V896zm335-139l182 181-91 91-181-182 90-90zm305-245v128h-256V512h256zm-305-117l-90-90 181-182 91 91-182 181zm-271 117q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19z" />
</svg>
}
}
}