zuicon_mdl2/
health_refresh.rs

1// Copyright (c) 2024 Xu Shaohua <shaohua@biofan.org>. All rights reserved.
2// Use of this source is governed by Lesser General Public License
3// that can be found in the LICENSE file.
4
5// Auto Generated! DO NOT EDIT!
6
7use yew::prelude::{html, Component, Context, Html, Properties};
8
9pub struct HealthRefresh {}
10
11#[derive(Properties, Debug, Clone, PartialEq, Eq)]
12pub struct Props {
13    #[prop_or_default]
14    pub class: Option<&'static str>,
15
16    #[prop_or_default]
17    pub width: Option<&'static str>,
18
19    #[prop_or_default]
20    pub height: Option<&'static str>,
21
22    #[prop_or_default]
23    pub color: Option<&'static str>,
24
25    #[prop_or_default]
26    pub fill: Option<&'static str>,
27
28    #[prop_or_default]
29    pub spin: bool,
30
31    #[prop_or_default]
32    pub rotate: i16,
33}
34
35impl Component for HealthRefresh {
36    type Properties = Props;
37    type Message = ();
38
39    fn create(_ctx: &Context<Self>) -> Self {
40        Self {}
41    }
42
43    fn view(&self, ctx: &Context<Self>) -> Html {
44        let props = ctx.props();
45        // TODO(Shaohua): Do not generate style attribute if it is empty.
46        let mut style = String::new();
47        if props.rotate != 0 {
48            style += &format!("transform: rotate({}deg);", props.rotate);
49        }
50        html! {
51            <svg
52                xmlns={ "http://www.w3.org/2000/svg" }
53                class={ props.class.unwrap_or("") }
54                width={ props.width.unwrap_or("16") }
55                height={ props.height.unwrap_or("16") }
56                focusable={ "false" }
57                data-icon={ "HealthRefresh" }
58                viewBox={ "0 0 16 16" }
59                fill={ props.fill.unwrap_or("currentColor") }
60                style={ style }
61            >
62            <path d="M129 671q0 47 11 97H9q-5-24-6-48t-2-48q0-113 42-212t116-173 173-116 212-43q108 0 208 41t177 118l95 96 95-96q76-77 176-118t209-41q112 0 211 42t172 116 116 172 43 211q0 98-34 189t-97 166h-470l-101-102-101 102h-182l283-282 155 154h355q32-51 49-108t17-117q0-87-32-162t-89-130-132-87-163-32q-82 0-158 30t-136 88l-186 186-186-186q-60-60-134-91t-160-31q-86 0-162 32t-132 89-88 132-33 162zm179 353l701 701q8 41 21 80t34 76l-40 40-865-864q-35-35-62-75t-47-86h243l283-282 448 447v182L576 794l-229 230h-39zm1441 155h2-2zm299 422q0 93-35 174t-95 141-142 96-174 35q-93 0-174-35t-142-95-96-142-35-174q0-91 35-174t100-147h-137v-128h384v384h-127v-191q-60 46-94 112t-34 143q0 66 25 124t69 102 102 69 125 26q66 0 124-25t101-68 69-102 25-125q0-51-15-98t-44-87-67-70-88-47l43-120q67 24 121 66t94 97 60 122 22 137z" />
63            </svg>
64        }
65    }
66}