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

function IconAgentCenterAnswerComponent(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-agent_center_answer${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 24 24" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M20 16.1035C20 16.0671 19.9802 16.0336 19.9482 16.0156L17.5156 14.6631C17.4864 14.6469 17.4506 14.6453 17.4209 14.6602V14.6611L14.8271 15.958C14.6307 16.0562 14.407 16.0872 14.1914 16.0459L14.3798 15.0635L14.1904 16.0449H14.1884C14.1874 16.0447 14.1858 16.0442 14.1845 16.0439C14.182 16.0435 14.1791 16.0427 14.1757 16.042C14.1688 16.0406 14.1599 16.0394 14.1494 16.0371C14.128 16.0325 14.0987 16.0259 14.0634 16.0176C13.993 16.0009 13.8955 15.9758 13.7763 15.9414C13.5381 15.8726 13.2087 15.7642 12.8271 15.6016C12.0674 15.2778 11.074 14.7283 10.1728 13.8271C9.27156 12.9259 8.72069 11.9306 8.39547 11.1699C8.23207 10.7877 8.12304 10.4583 8.05367 10.2197C8.01896 10.1003 7.99337 10.0031 7.97652 9.93262C7.9681 9.89733 7.96161 9.8681 7.95699 9.84668C7.95472 9.83612 7.95256 9.82727 7.95113 9.82031C7.95046 9.81702 7.95065 9.81398 7.95016 9.81152C7.9499 9.81024 7.94939 9.80867 7.94918 9.80762V9.80664L7.9482 9.80566V9.80469C7.90617 9.58827 7.9375 9.36419 8.03609 9.16699L9.33297 6.57227C9.34044 6.55733 9.3441 6.54066 9.34371 6.52441L9.33102 6.47754L7.98434 4.05176C7.96654 4.01988 7.9329 4.00015 7.89645 4H5.10348C4.30661 4.00012 3.83935 4.70418 4.0566 5.34863C4.98345 8.09547 6.70214 12.2003 9.25094 14.749C11.7997 17.2978 15.9045 19.0165 18.6513 19.9434C19.2958 20.1606 19.9998 19.6934 20 18.8965V16.1035ZM22 18.8965C21.9998 20.9437 20.0622 22.5306 18.0117 21.8389C15.223 20.8979 10.7343 19.0606 7.83688 16.1631C4.93936 13.2656 3.10205 8.77693 2.16109 5.98828C1.46936 3.93775 3.05625 2.00013 5.10348 2L7.89645 2C8.65954 2.00015 9.36295 2.41392 9.73336 3.08105L11.08 5.50684C11.4165 6.11291 11.4322 6.84664 11.122 7.4668L9.99313 9.72266C10.0444 9.89154 10.1215 10.1199 10.2343 10.3838C10.4905 10.9829 10.9146 11.7409 11.5869 12.4131C12.2588 13.085 13.0145 13.5074 13.6113 13.7617C13.8733 13.8734 14.1006 13.9493 14.2685 14L16.5263 12.8721C17.1469 12.5617 17.8809 12.578 18.4873 12.915L20.9199 14.2676L21.042 14.3408C21.6365 14.7262 22 15.3884 22 16.1035V18.8965Z"/></svg>;
}

const IconAgentCenterAnswer = React.forwardRef(IconAgentCenterAnswerComponent);
export default IconAgentCenterAnswer;
