use yew::prelude::{html, Component, Context, Html, Properties};
pub struct Starburst {}
#[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 Starburst {
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={ "Starburst" }
viewBox={ "0 0 16 16" }
fill={ props.fill.unwrap_or("currentColor") }
style={ style }
>
<path d="M1664 1280l96 480-480-96-256 384-256-384-480 96 96-480L0 1024l384-256-96-480 480 96L1024 0l256 384 480-96-96 480 384 256-384 256zm-443 242q95 17 188 36t188 39q-20-94-39-187t-36-189q75-49 148-98t147-99q-74-50-147-99t-148-98q18-95 37-188t38-188q-94 20-187 39t-189 36q-49-75-98-148t-99-147q-50 74-99 147t-98 148q-95-17-188-36t-188-39q20 94 39 187t36 189q-75 49-148 98t-147 99q74 50 147 99t148 98q-18 95-37 188t-38 188q94-20 187-39t189-36q49 75 98 148t99 147q50-74 99-147t98-148z" />
</svg>
}
}
}