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

function IconDynamicDecisionMakingComponent(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-dynamic-decision-making${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_128d199c52__clip0_2418_15298)"><path d="M14.0566 7.71387C14.1173 7.65073 14.2156 7.65084 14.2764 7.71387L15.9697 9.48145C16.0102 9.52368 16.0101 9.59247 15.9697 9.63477C15.9503 9.65502 15.9239 9.66694 15.8965 9.66699H14.8008C14.053 12.7282 11.2916 15 8 15C4.70842 15 1.947 12.7282 1.19922 9.66699H2.58203C3.29381 11.9831 5.45049 13.667 8 13.667C10.5495 13.667 12.7062 11.9831 13.418 9.66699H12.4375C12.3803 9.66699 12.3331 9.6183 12.333 9.55859C12.333 9.52988 12.3438 9.50175 12.3633 9.48145L14.0566 7.71387ZM7.76465 5C7.89478 4.87006 8.10522 4.87006 8.23535 5L10.5928 7.35742C10.7227 7.48756 10.7227 7.69801 10.5928 7.82812L10.1211 8.2998C9.99099 8.4298 9.78055 8.42972 9.65039 8.2998L8.6709 7.32031V10.7646C8.67071 10.9485 8.52179 11.0976 8.33789 11.0977H7.6709C7.48699 11.0976 7.33808 10.9485 7.33789 10.7646V7.31152L6.34961 8.2998C6.21945 8.42972 6.00901 8.42981 5.87891 8.2998L5.40723 7.82812C5.2773 7.69801 5.27733 7.48756 5.40723 7.35742L7.76465 5ZM3.5625 6.33301C3.59001 6.33301 3.61727 6.34493 3.63672 6.36523C3.67117 6.40149 3.67609 6.45738 3.65137 6.49902L3.63672 6.51855L1.94336 8.28613C1.89027 8.34139 1.80834 8.34804 1.74805 8.30664L1.72363 8.28613L0.0302734 6.51855C0.0108242 6.49825 0 6.47012 0 6.44141C9.17717e-05 6.39024 0.0343238 6.34714 0.0800781 6.33594L0.103516 6.33301H1.19922C1.947 3.27177 4.70842 1 8 1C11.2916 1 14.053 3.27177 14.8008 6.33301H13.418C12.7062 4.01688 10.5495 2.33301 8 2.33301C5.45049 2.33301 3.29381 4.01688 2.58203 6.33301H3.5625Z"/></g><defs><clipPath id="svg_128d199c52__clip0_2418_15298"><path d="M0 0H16V16H0z"/></clipPath></defs></svg>;
}

const IconDynamicDecisionMaking = React.forwardRef(IconDynamicDecisionMakingComponent);
export default IconDynamicDecisionMaking;
