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

function IconCollect2Component(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-collect2${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'currentColor'} viewBox="0 0 24 24" {...rest} ref={ref}><path fill={useCurrentColor ? 'currentColor' : '#F0A50F'} d="M11.585 3.71201C11.6272 3.63937 11.6878 3.57908 11.7606 3.53717C11.8334 3.49526 11.916 3.47321 12 3.47321C12.084 3.47321 12.1666 3.49526 12.2394 3.53717C12.3122 3.57908 12.3728 3.63937 12.415 3.71201L14.803 7.81201C14.8364 7.86956 14.8813 7.91955 14.9351 7.95879C14.9888 7.99804 15.05 8.0257 15.115 8.04001L19.755 9.04401C19.837 9.06195 19.9128 9.10106 19.9749 9.15743C20.037 9.2138 20.0833 9.28547 20.1091 9.36529C20.1349 9.44511 20.1393 9.53029 20.1219 9.61236C20.1045 9.69443 20.066 9.7705 20.01 9.83301L16.85 13.373C16.8057 13.4225 16.7721 13.4807 16.7515 13.5439C16.7308 13.6071 16.7235 13.6739 16.73 13.74L17.207 18.46C17.216 18.5438 17.2028 18.6286 17.1687 18.7056C17.1345 18.7827 17.0807 18.8495 17.0126 18.8991C16.9444 18.9488 16.8644 18.9797 16.7806 18.9886C16.6968 18.9975 16.6121 18.9842 16.535 18.95L12.193 17.035C12.1322 17.0083 12.0665 16.9945 12 16.9945C11.9336 16.9945 11.8678 17.0083 11.807 17.035L7.46401 18.95C7.38712 18.9841 7.30262 18.9974 7.21898 18.9885C7.13534 18.9797 7.05549 18.949 6.98744 18.8996C6.91938 18.8502 6.86551 18.7837 6.83121 18.7069C6.79691 18.6301 6.78339 18.5457 6.79201 18.462L7.27201 13.741C7.27865 13.6747 7.27141 13.6077 7.25075 13.5444C7.23009 13.481 7.19646 13.4227 7.15201 13.373L3.98901 9.83301C3.93332 9.77049 3.89495 9.69449 3.87771 9.61256C3.86048 9.53063 3.86497 9.44561 3.89075 9.36595C3.91653 9.28629 3.96269 9.21476 4.02466 9.15846C4.08663 9.10216 4.16225 9.06305 4.24401 9.04501L8.88401 8.04101C8.94916 8.02683 9.01063 7.99923 9.06452 7.95998C9.11841 7.92072 9.16354 7.87067 9.19701 7.81301L11.585 3.71301V3.71201Z"/><path fill={useCurrentColor ? 'currentColor' : '#DE980D'} fillRule="evenodd" d="M10.9035 2.04655C11.2371 1.85477 11.6152 1.75385 12 1.75385C12.3848 1.75385 12.7629 1.85477 13.0965 2.04655C13.43 2.2383 13.7074 2.51416 13.901 2.84661C13.9011 2.84667 13.901 2.84655 13.901 2.84661L16.0144 6.47411L20.119 7.36474C20.4943 7.44655 20.8426 7.6254 21.1274 7.88308C21.4122 8.14076 21.6246 8.46851 21.7434 8.83375C21.8622 9.19898 21.8834 9.58896 21.8048 9.9649C21.7261 10.3408 21.5504 10.6896 21.2952 10.9766L21.2935 10.9785L18.4944 14.1098L18.9178 18.2867C18.9567 18.6693 18.8947 19.0559 18.7378 19.407C18.5808 19.7583 18.3345 20.0623 18.0234 20.2886C17.7123 20.5149 17.3472 20.6557 16.9647 20.6969C16.5822 20.7381 16.1955 20.6783 15.8433 20.5234L12.0001 18.8289L8.15758 20.5239C7.80548 20.6792 7.41864 20.7394 7.03601 20.6985C6.65338 20.6576 6.28817 20.5171 5.97684 20.2909C5.66551 20.0647 5.41895 19.7608 5.26177 19.4096C5.10461 19.0584 5.0423 18.6721 5.08106 18.2893C5.08107 18.2893 5.08106 18.2894 5.08106 18.2893L5.50373 14.1116L2.70718 10.9802C2.70716 10.9801 2.7072 10.9802 2.70718 10.9802C2.45103 10.6934 2.27446 10.3444 2.1952 9.96809C2.11592 9.59178 2.13668 9.20126 2.25539 8.83547C2.37411 8.46969 2.58663 8.14141 2.87178 7.88337C3.15692 7.62533 3.50473 7.44654 3.88051 7.36483L7.9856 6.47592L10.0988 2.8468C10.2924 2.51427 10.5699 2.23834 10.9035 2.04655ZM12 3.75385C11.965 3.75385 11.9306 3.76302 11.9003 3.78046C11.87 3.79789 11.8448 3.82297 11.8272 3.8532L9.27037 8.24407L4.30546 9.31917C4.30537 9.31918 4.30554 9.31915 4.30546 9.31917C4.27139 9.32662 4.23961 9.3429 4.21375 9.36631C4.18783 9.38976 4.16851 9.41961 4.15772 9.45286C4.14692 9.48611 4.14504 9.52162 4.15224 9.55583C4.15945 9.59003 4.1755 9.62176 4.19879 9.64783L7.58224 13.4364L7.07091 18.4907C7.06738 18.5255 7.07303 18.5607 7.08732 18.5927C7.1016 18.6246 7.12402 18.6522 7.15232 18.6728C7.18062 18.6934 7.21382 18.7061 7.24861 18.7099C7.28333 18.7136 7.31842 18.7081 7.35039 18.6941L11.9999 16.6431L16.6486 18.6926C16.6488 18.6927 16.6485 18.6926 16.6486 18.6926C16.6805 18.7066 16.716 18.7121 16.7506 18.7084C16.7853 18.7047 16.8185 18.6919 16.8468 18.6713C16.8751 18.6507 16.8975 18.6231 16.9118 18.5912C16.926 18.5592 16.9317 18.5241 16.9281 18.4893L16.4156 13.4342L19.8008 9.64738C19.801 9.64717 19.8006 9.64759 19.8008 9.64738C19.8237 9.62142 19.84 9.58931 19.8471 9.55541C19.8543 9.52123 19.8524 9.48577 19.8416 9.45257C19.8307 9.41938 19.8114 9.38958 19.7855 9.36615C19.7598 9.34283 19.7284 9.32663 19.6944 9.31915C19.6943 9.31911 19.6946 9.31918 19.6944 9.31915L14.7296 8.24188L12.1729 3.85339C12.1553 3.82316 12.13 3.79789 12.0997 3.78046C12.0693 3.76302 12.035 3.75385 12 3.75385Z" clipRule="evenodd"/></svg>;
}

const IconCollect2 = React.forwardRef(IconCollect2Component);
export default IconCollect2;
