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

function IconTransform1Component(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-transform_1${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 22 22" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M21.1543 11.9751C21.1883 11.8446 21.3604 11.8576 21.3604 11.9927C21.357 14.33 20.3374 18.2582 16.7676 19.7886C13.0171 21.3957 9.53208 20.048 8.01367 19.0269C7.88041 18.938 7.69569 18.9924 7.64062 19.1431L7.05078 20.7661C6.94945 21.0437 6.57248 21.0839 6.41504 20.8335L1.97168 13.7642C1.78897 13.4734 1.96663 13.0909 2.30664 13.0425L9.5166 12.0122C9.6887 11.9878 9.82758 12.1509 9.77637 12.3169L9.00391 14.8286C8.96226 14.9647 8.98217 15.1136 9.07227 15.2241C9.87238 16.2068 12.2587 17.8127 15.6289 17.4165C19.2531 16.9899 20.5783 14.2005 21.1543 11.9751ZM14.9443 1.22998C15.0454 0.951922 15.4225 0.911586 15.5801 1.1626L20.0234 8.23096C20.2061 8.52182 20.0287 8.90522 19.6885 8.95361L12.4785 9.98389C12.3064 10.0085 12.1677 9.84516 12.2188 9.6792L12.9912 7.16748C13.0334 7.03135 13.0129 6.88252 12.9229 6.77197C12.1228 5.78928 9.7366 4.18291 6.36621 4.57959C2.74213 5.00578 1.41638 7.79513 0.84082 10.02C0.807103 10.1509 0.634766 10.1377 0.634766 10.0024C0.638223 7.66546 1.6586 3.73721 5.22852 2.20752C8.97888 0.600076 12.4631 1.94716 13.9814 2.96826C14.1142 3.05785 14.2993 3.00324 14.3545 2.85303L14.9443 1.22998Z"/></svg>;
}

const IconTransform1 = React.forwardRef(IconTransform1Component);
export default IconTransform1;
