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

function IconOtherToolComponent(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-Other_Tool${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 24 24" {...rest} ref={ref}><g><path d="M1.92 9.157c0-1.16.273-2.256.758-3.228.145-.289.527-.334.756-.106l4.175 4.175a.5.5 0 0 0 .707 0l1.95-1.95a.5.5 0 0 0 0-.708L6.19 3.263c-.237-.236-.178-.634.13-.765a7.237 7.237 0 0 1 9.49 9.515.523.523 0 0 0 .103.577l4.759 4.76a1 1 0 0 1 0 1.414l-1.909 1.908a1 1 0 0 1-1.414 0l-4.759-4.76a.523.523 0 0 0-.577-.103A7.237 7.237 0 0 1 1.92 9.157Z"/></g></svg>;
}

const IconOtherTool = React.forwardRef(IconOtherToolComponent);
export default IconOtherTool;
