use yew::prelude::{html, Component, Context, Html, Properties};
pub struct MarkAsProtected {}
#[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 MarkAsProtected {
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={ "MarkAsProtected" }
viewBox={ "0 0 16 16" }
fill={ props.fill.unwrap_or("currentColor") }
style={ style }
>
<path d="M1193 1611L489 907l283-283 704 704-283 283zm102-283L772 805 670 907l523 523 102-102zm369 592v-640h128v768H128V0h922L922 128H256v1792h1408zm305-1481l-215 87 245 245-268 268-72-73-89 86-582-582 89-86-70-69 268-268 241 242 91-212 74-74 362 362-74 74zm-275-242l-98 168 79 82 172-97-153-153zm124 574l-543-543-110 121 543 543 110-121z" />
</svg>
}
}
}