import React, { ForwardedRef, useContext } from 'react';
import { OriginIconProps } from '../type';
import { Context } from '../context';

function IconFan1Component(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = true, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-fan_1${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 12 12" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M7.45537 0.51169L8.68278 0.815621C8.47237 1.41569 8.19571 1.99238 7.85282 2.5457C7.50992 3.09901 7.13585 3.5588 6.73061 3.92508C6.66047 3.83936 6.56695 3.74194 6.45005 3.63284C6.34095 3.52373 6.22795 3.41463 6.11105 3.30553C5.99415 3.18863 5.88895 3.09511 5.79543 3.02497C6.16171 2.72104 6.48902 2.35087 6.77736 1.91445C7.0735 1.47024 7.2995 1.00266 7.45537 0.51169ZM9.39586 2.01966L10.6817 2.13656C10.5103 2.91587 10.2453 3.58608 9.88682 4.14718C9.53613 4.70829 9.09582 5.18367 8.56589 5.57333C8.03595 5.95519 7.4203 6.27081 6.71892 6.52019C6.67216 6.43447 6.59812 6.32926 6.49681 6.20457C6.40329 6.07209 6.30198 5.9474 6.19288 5.8305C6.09157 5.70581 6.00195 5.6045 5.92402 5.52657C6.89036 5.24601 7.66578 4.82908 8.25027 4.27577C8.84254 3.71467 9.22441 2.96263 9.39586 2.01966ZM7.35016 1.57545H11.3247V2.62752H6.82412L7.35016 1.57545ZM1.98459 0.5L3.14187 0.792242C2.94704 1.21307 2.69766 1.62221 2.39373 2.01966C2.09759 2.40932 1.79756 2.73663 1.49362 3.00159C1.42349 2.93925 1.32607 2.86521 1.20138 2.77949C1.08448 2.69377 0.959794 2.61194 0.827311 2.53401C0.702621 2.45607 0.593518 2.38983 0.5 2.33528C0.811725 2.10928 1.09617 1.83652 1.35335 1.517C1.61831 1.18969 1.82873 0.85069 1.98459 0.5ZM2.01966 1.21307H6.27471V2.07811H1.58714L2.01966 1.21307ZM7.81775 2.39373C8.12168 3.18084 8.58927 3.84715 9.22051 4.39267C9.85955 4.93819 10.6622 5.32005 11.6286 5.53826C11.4961 5.67074 11.348 5.84998 11.1844 6.07598C11.0285 6.29419 10.9077 6.48512 10.822 6.64878C9.78551 6.34485 8.93606 5.85388 8.27364 5.17588C7.61902 4.49008 7.11247 3.64453 6.75398 2.63921L7.81775 2.39373ZM5.2577 9.05685H6.64878V11.5H5.2577V9.05685ZM5.0356 5.88895L6.19288 6.42667C5.86557 6.67605 5.52657 6.91374 5.17588 7.13975C4.83298 7.36575 4.51736 7.55668 4.22901 7.71254L3.36397 7.24495C3.55101 7.12026 3.74584 6.97999 3.94846 6.82412C4.15887 6.66826 4.3576 6.5085 4.54463 6.34485C4.73946 6.18119 4.90312 6.02922 5.0356 5.88895ZM7.33847 6.33316L8.47237 6.97609C8.05154 7.25664 7.59954 7.5333 7.11637 7.80606C6.63319 8.07102 6.15002 8.3282 5.66684 8.57758C5.18367 8.81916 4.72777 9.02568 4.29915 9.19713L3.48087 8.62434C3.9017 8.42951 4.34591 8.20351 4.8135 7.94633C5.28888 7.68137 5.74477 7.40861 6.18119 7.12806C6.6254 6.8475 7.01116 6.58254 7.33847 6.33316ZM1.89107 7.46706L2.83794 6.7423C3.1029 6.85919 3.38735 6.99947 3.69129 7.16312C3.99522 7.32678 4.28746 7.49433 4.56801 7.66578C4.84857 7.82944 5.07846 7.9892 5.2577 8.14506L4.25239 8.95165C4.08874 8.80358 3.87442 8.63992 3.60946 8.46068C3.34449 8.28144 3.06004 8.10609 2.75611 7.93464C2.45997 7.7554 2.17163 7.59954 1.89107 7.46706ZM7.78268 7.95802L8.74123 7.33847C9.04517 7.50213 9.36468 7.68526 9.69979 7.88789C10.0349 8.09051 10.3505 8.30092 10.6467 8.51913C10.9506 8.73734 11.2039 8.94385 11.4065 9.13868L10.3661 9.81668C10.1947 9.63744 9.96475 9.43872 9.67641 9.22051C9.38806 8.99451 9.07634 8.77241 8.74123 8.5542C8.41392 8.3282 8.0944 8.12947 7.78268 7.95802ZM7.39692 10.1206L8.41392 9.41924C8.71006 9.51275 9.02958 9.62965 9.37248 9.76993C9.72317 9.9102 10.0583 10.0544 10.3778 10.2024C10.7051 10.3505 10.9779 10.4908 11.1961 10.6233L10.1206 11.4065C9.92579 11.2818 9.67251 11.1415 9.36079 10.9857C9.05685 10.8298 8.72954 10.6739 8.37885 10.5181C8.03595 10.37 7.70864 10.2375 7.39692 10.1206ZM0.850691 8.47237C1.41959 8.47237 2.05863 8.46847 2.7678 8.46068C3.48477 8.45289 4.24849 8.44509 5.05898 8.4373C5.87726 8.42951 6.71502 8.42171 7.57226 8.41392C8.42951 8.39833 9.27896 8.38275 10.1206 8.36716L10.0622 9.31403C9.24389 9.3452 8.41782 9.37248 7.58395 9.39586C6.75009 9.41923 5.93181 9.44261 5.12912 9.46599C4.33422 9.48937 3.57829 9.50886 2.86132 9.52444C2.14435 9.54003 1.49752 9.55172 0.920829 9.55951L0.850691 8.47237ZM3.35228 9.48937L4.59139 9.98034C4.33422 10.1752 4.03418 10.3622 3.69129 10.5414C3.35618 10.7207 3.00939 10.8843 2.6509 11.0324C2.29242 11.1883 1.94952 11.3208 1.62221 11.4299C1.54428 11.3441 1.44686 11.2428 1.32997 11.1259C1.21307 11.009 1.08838 10.8921 0.955898 10.7752C0.831208 10.6583 0.722104 10.5648 0.628587 10.4947C1.11955 10.3778 1.61442 10.2336 2.11318 10.0622C2.61973 9.88293 3.03277 9.69199 3.35228 9.48937ZM1.56376 2.46387H2.63921C2.58466 2.86132 2.52232 3.28215 2.45218 3.72635C2.38204 4.16277 2.3119 4.5875 2.24176 5.00053C2.17163 5.40577 2.10538 5.76426 2.04304 6.07598L0.955898 5.97078C1.03383 5.65905 1.10786 5.30446 1.178 4.90701C1.25593 4.50177 1.32607 4.08874 1.38842 3.66791C1.45855 3.23928 1.517 2.83794 1.56376 2.46387ZM3.2237 2.75611H4.14718C4.1238 3.02108 4.09263 3.30163 4.05367 3.59777C4.02249 3.88611 3.98742 4.16667 3.94846 4.43943C3.91729 4.71219 3.88222 4.95377 3.84325 5.16419L2.90808 5.1525C2.94704 4.94208 2.98601 4.7005 3.02497 4.42774C3.07173 4.15498 3.1107 3.87442 3.14187 3.58608C3.17304 3.28994 3.20032 3.01328 3.2237 2.75611ZM1.93783 2.46387H5.22264V3.17694H1.93783V2.46387ZM0.651966 3.62115H6.45005V4.3576H0.651966V3.62115ZM1.66897 4.82519H6.46174V5.56164H1.66897V4.82519ZM4.86026 2.46387H5.87726C5.87726 2.46387 5.87336 2.51452 5.86557 2.61583C5.86557 2.71714 5.86167 2.80287 5.85388 2.87301C5.80712 3.61335 5.75647 4.21732 5.70191 4.68491C5.64736 5.1447 5.58502 5.49929 5.51488 5.74867C5.44474 5.99805 5.36291 6.17729 5.26939 6.2864C5.17588 6.3955 5.07067 6.47733 4.95377 6.53188C4.84467 6.57864 4.71608 6.60981 4.56801 6.6254C4.45112 6.6254 4.29915 6.6293 4.11211 6.63709C3.92508 6.63709 3.72635 6.63319 3.51594 6.6254C3.50815 6.50071 3.48087 6.36043 3.43411 6.20457C3.39515 6.04091 3.34059 5.90843 3.27046 5.80712C3.45749 5.82271 3.62115 5.8344 3.76142 5.84219C3.90949 5.84219 4.02249 5.84219 4.10043 5.84219C4.17836 5.84219 4.2407 5.8344 4.28746 5.81881C4.33422 5.80322 4.38098 5.76815 4.42774 5.7136C4.49008 5.64346 4.54463 5.49929 4.59139 5.28108C4.64594 5.06288 4.6966 4.73946 4.74336 4.31084C4.79012 3.88222 4.82908 3.31722 4.86026 2.61583V2.46387Z"/></svg>;
}

const IconFan1 = React.forwardRef(IconFan1Component);
export default IconFan1;
