// Copyright (c) 2024 Xu Shaohua <shaohua@biofan.org>. All rights reserved.
// Use of this source is governed by Lesser General Public License
// that can be found in the LICENSE file.
// Auto Generated! DO NOT EDIT!
use yew::prelude::{html, Component, Context, Html, Properties};
pub struct WechatWork {}
#[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 WechatWork {
type Properties = Props;
type Message = ();
fn create(_ctx: &Context<Self>) -> Self {
Self {}
}
fn view(&self, ctx: &Context<Self>) -> Html {
let props = ctx.props();
// TODO(Shaohua): Do not generate style attribute if it is empty.
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={ "wechat-work" }
viewBox={ "0 0 16 16" }
fill={ props.fill.unwrap_or("currentColor") }
style={ style }
>
<path d="M693.333 0H106.667C47.756 0 0 47.756 0 106.667v586.666C0 752.244 47.756 800 106.667 800h586.666C752.244 800 800 752.244 800 693.333V106.667C800 47.756 752.244 0 693.333 0m-98.169 417.862a102.129 102.129 0 0 0 28.09 52.454l2.137 2.062c.409.275.796.573 1.156.902l.555.636.191.022a7.964 7.964 0 0 1-.969 10.818 7.964 7.964 0 0 1-10.853-.178c-1.102-1.05-2.142-2.142-3.24-3.24a102.489 102.489 0 0 0-53.818-28.356l-2.004-.275c-.658-.116-1.342-.387-1.978-.387-16.28-3.785-27.224-19.06-25.574-35.692 1.65-16.632 15.384-29.458 32.09-29.97 16.72-.5 31.213 11.487 33.857 28.004.165 1.085.36 2.156.36 3.2M382.062 571.684a276.782 276.782 0 0 1-61.706.165 267.307 267.307 0 0 1-44.663-8.605l-68.44 34.405c-.329.244-.769.431-1.15.711h-.276a18.289 18.289 0 0 1-27.516-15.902c.027-.587.093-1.17.191-1.742.134-1.97.6-3.898 1.378-5.712l2.747-11.155 9.564-39.56a277.573 277.573 0 0 1-49.253-54.671 185.987 185.987 0 0 1-31.827-103.516 182.422 182.422 0 0 1 19.076-81.044 203.982 203.982 0 0 1 37.19-52.316c38.916-39.938 93.259-65.52 153.094-72.035a278.247 278.247 0 0 1 30.182-1.64c10.498.03 20.987.649 31.414 1.866 59.586 6.783 113.653 32.476 152.266 72.36a202.96 202.96 0 0 1 37 52.476 182.298 182.298 0 0 1 18.17 94.675c-.52-.577-1.019-1.208-1.57-1.76-10.873-10.836-27.75-12.823-40.844-4.808.222-2.254.222-4.538.222-6.783a143.644 143.644 0 0 0-14.76-63.382 164.071 164.071 0 0 0-29.684-42.147c-31.774-32.768-76.467-53.955-125.885-59.55a234.369 234.369 0 0 0-51.67-.143c-49.614 5.413-94.605 26.453-126.574 59.262a163.631 163.631 0 0 0-29.818 41.951 143.436 143.436 0 0 0-15.12 63.925 147.156 147.156 0 0 0 25.289 81.515 170.498 170.498 0 0 0 24.929 29.396 172.311 172.311 0 0 0 17.564 14.747 17.6 17.6 0 0 1 6.351 19.622l-6.489 24.667-1.866 7.146-1.622 6.45a2.849 2.849 0 0 0 2.777 2.88 3.987 3.987 0 0 0 1.925-.68l43.866-25.934 1.432-.774a23.2 23.2 0 0 1 18.248-1.84c11.09 3.23 22.41 5.61 33.863 7.12l5.222.685a227.257 227.257 0 0 0 51.671-.138 226.578 226.578 0 0 0 42.747-9.067c-1.498 15.476 7.943 29.919 22.72 34.756a269.267 269.267 0 0 1-60.365 14.124m89.071-24.875a33.333 33.333 0 0 1-33.764-18.747 33.316 33.316 0 0 1 6.644-38.03 33.156 33.156 0 0 1 18.254-9.312c1.07-.142 2.19-.36 3.24-.36a102.373 102.373 0 0 0 52.475-28.053l2.2-2.33a10.21 10.21 0 0 1 1.57-1.68v-.026a7.969 7.969 0 1 1 10.64 11.809l-3.245 3.24a102.44 102.44 0 0 0-28.56 53.738c-.085.635-.276 1.35-.276 2.009l-.387 2.004a33.293 33.293 0 0 1-28.79 25.738m94.431 93.867c-16.405 2.02-31.809-8.303-36.177-24.245a28.009 28.009 0 0 1-1.098-6.729 102.4 102.4 0 0 0-28.147-52.39l-2.31-2.25a7.191 7.191 0 0 1-1.103-.91l-.542-.6h-.031v.057a7.964 7.964 0 0 1 .964-10.818 7.956 7.956 0 0 1 10.849.178l3.222 3.24a102.289 102.289 0 0 0 53.791 28.355l2.005.272a33.271 33.271 0 1 1-1.423 65.84m113.672-103.338a32.836 32.836 0 0 1-18.276 9.315 26.364 26.364 0 0 1-3.24.36 102.32 102.32 0 0 0-52.444 28.103 49.566 49.566 0 0 0-3.138 3.408l-.68.552h.022l.084.053a7.938 7.938 0 1 1-10.604-11.809l3.24-3.24a102.053 102.053 0 0 0 28.364-53.707 33.262 33.262 0 1 1 62.405-12.093 33.213 33.213 0 0 1-5.733 39.058" transform="translate(112 112)"/>
</svg>
}
}
}