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

function IconRouge2Component(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-rouge-2${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 18 18" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M1 3.96629C1 2.32805 2.32805 1 3.96629 1H14.0337C15.6719 1 17 2.32805 17 3.96629V14.0337C17 15.6719 15.6719 17 14.0337 17H3.96629C2.32805 17 1 15.6719 1 14.0337V3.96629ZM3.96629 2.61798C3.22164 2.61798 2.61798 3.22164 2.61798 3.96629V14.0337C2.61798 14.7783 3.22164 15.382 3.96629 15.382H14.0337C14.7783 15.382 15.382 14.7783 15.382 14.0337V3.96629C15.382 3.22164 14.7783 2.61798 14.0337 2.61798H3.96629ZM14.5398 11.7899C14.7158 11.7899 14.8624 11.8486 14.9798 11.9659C15.0971 12.0833 15.1558 12.2299 15.1558 12.4059C15.1558 12.5746 15.0971 12.7176 14.9798 12.8349C14.8624 12.9449 14.7158 12.9999 14.5398 12.9999H10.7998C10.6091 12.9999 10.4588 12.9413 10.3488 12.8239C10.2388 12.7066 10.1838 12.5563 10.1838 12.3729C10.1838 12.1896 10.2498 12.0283 10.3818 11.8889L12.7798 9.32594C13.0511 9.03261 13.2638 8.73194 13.4178 8.42394C13.5791 8.11594 13.6597 7.84827 13.6597 7.62094C13.6597 7.25427 13.5534 6.96094 13.3407 6.74094C13.1281 6.51361 12.8458 6.39994 12.4938 6.39994C12.3544 6.39994 12.2114 6.43294 12.0648 6.49894C11.9181 6.56494 11.7751 6.65661 11.6357 6.77394C11.5038 6.89127 11.3791 7.02694 11.2618 7.18094C11.1738 7.29827 11.0858 7.37161 10.9978 7.40094C10.9098 7.43028 10.8291 7.44494 10.7558 7.44494C10.5944 7.44494 10.4441 7.38628 10.3048 7.26894C10.1728 7.14428 10.1068 7.00128 10.1068 6.83994C10.1068 6.71528 10.1471 6.59427 10.2278 6.47694C10.3158 6.35961 10.4221 6.23861 10.5468 6.11394C10.7301 5.93061 10.9354 5.76927 11.1628 5.62994C11.3901 5.49061 11.6248 5.38427 11.8668 5.31094C12.1088 5.23027 12.3434 5.18994 12.5708 5.18994C13.0621 5.18994 13.4874 5.28894 13.8468 5.48694C14.2134 5.67761 14.4958 5.95261 14.6938 6.31194C14.8918 6.66394 14.9908 7.08194 14.9908 7.56594C14.9908 7.96927 14.8698 8.42027 14.6278 8.91894C14.3931 9.41027 14.0741 9.87228 13.6707 10.3049L12.2786 11.7899H14.5398ZM3.56701 12.813C3.72835 12.9377 3.91168 13 4.11701 13C4.30035 13 4.44335 12.9377 4.54601 12.813C4.64868 12.681 4.70001 12.5197 4.70001 12.329V10.195H6.75701C6.92568 10.195 7.07235 10.217 7.19701 10.261C7.32168 10.2977 7.42435 10.3564 7.50501 10.437C7.58568 10.5104 7.64801 10.602 7.69201 10.712C7.73601 10.8147 7.75801 10.9284 7.75801 11.0531C7.75801 11.4344 7.79468 11.746 7.86801 11.988C7.94868 12.23 8.05135 12.4244 8.17601 12.571C8.30068 12.7104 8.42535 12.8167 8.55001 12.89C8.63068 12.934 8.73335 12.9707 8.85801 13C8.98268 13.022 9.10735 13.022 9.23201 13C9.35668 12.9707 9.45935 12.9084 9.54001 12.813C9.66468 12.6737 9.70501 12.516 9.66101 12.34C9.62435 12.1567 9.52535 12.0174 9.36401 11.922C9.26868 11.8707 9.20268 11.7974 9.16601 11.702C9.13668 11.6067 9.11468 11.4894 9.10001 11.35C9.09268 11.2107 9.07435 11.0494 9.04501 10.866C9.03035 10.668 8.98268 10.4847 8.90201 10.316C8.82868 10.14 8.72235 9.97872 8.58301 9.83205C8.49894 9.73396 8.39999 9.6448 8.28616 9.56457C8.4412 9.46351 8.58415 9.34001 8.71501 9.19405C8.91301 8.98138 9.06701 8.74305 9.17701 8.47905C9.29435 8.21505 9.35301 7.94372 9.35301 7.66505C9.35301 7.20305 9.25035 6.79605 9.04501 6.44405C8.83968 6.08472 8.56835 5.80605 8.23101 5.60805C7.90101 5.40272 7.54535 5.30005 7.16401 5.30005H3.99601C3.80535 5.30005 3.64401 5.36605 3.51201 5.49805C3.38735 5.62272 3.32501 5.78038 3.32501 5.97105V12.329C3.32501 12.5197 3.40568 12.681 3.56701 12.813ZM4.70001 9.06205H7.10901C7.24101 9.06205 7.36935 9.00338 7.49401 8.88605C7.61868 8.76138 7.72135 8.59638 7.80201 8.39105C7.88268 8.17838 7.92301 7.94738 7.92301 7.69805C7.92301 7.37538 7.83501 7.10772 7.65901 6.89505C7.49035 6.67505 7.30701 6.56505 7.10901 6.56505H4.70001V9.06205Z"/></svg>;
}

const IconRouge2 = React.forwardRef(IconRouge2Component);
export default IconRouge2;
