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

function IconThinkComponent(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 || 'font';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-Think${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 16 16" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><g clipPath="url(#svg_4c96c9aaa5__clip0_10361_238736)"><path fillRule="evenodd" clipRule="evenodd" d="M10.6488 11.9637L10.2792 13.0724C10.1125 13.5727 9.6443 13.9102 9.11696 13.9102H6.88304C6.3557 13.9102 5.88752 13.5727 5.72076 13.0724L5.35117 11.9637C5.33994 11.93 5.31351 11.9035 5.27982 11.8923C3.49231 11.2965 2.23188 9.69271 2.0754 7.81502L2 6.91016C2 3.59645 4.68629 0.910156 8 0.910156C11.3137 0.910156 14 3.59645 14 6.91016L13.9246 7.81502C13.7681 9.69271 12.5077 11.2965 10.7202 11.8923C10.6865 11.9035 10.6601 11.93 10.6488 11.9637ZM10.2985 10.6274C11.5801 10.2002 12.4837 9.05045 12.5959 7.70429L12.6664 6.85811C12.6385 4.30476 10.56 2.24349 8 2.24349C5.44004 2.24349 3.36152 4.30476 3.33362 6.85811L3.40413 7.70429C3.51631 9.05045 4.41995 10.2002 5.70146 10.6274C6.13326 10.7714 6.47214 11.1102 6.61608 11.542L6.96101 12.5768H9.03899L9.38391 11.542C9.52786 11.1102 9.86676 10.7713 10.2985 10.6274Z"/><path d="M6 15.2435C6 14.8753 6.29848 14.5768 6.66667 14.5768H9.33333C9.70152 14.5768 10 14.8753 10 15.2435C10 15.6117 9.70152 15.9102 9.33333 15.9102H6.66667C6.29848 15.9102 6 15.6117 6 15.2435Z"/></g><defs><clipPath id="svg_4c96c9aaa5__clip0_10361_238736"><path d="M0 0H16V16H0z"/></clipPath></defs></svg>;
}

const IconThink = React.forwardRef(IconThinkComponent);
export default IconThink;
