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

function IconUploadRadioComponent(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-upload_radio${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 d="M13.1621 9.92383C13.2989 9.7872 13.5194 9.78722 13.6572 9.92383L16.1377 12.4043C16.2745 12.5411 16.2745 12.7636 16.1377 12.9004L15.6426 13.3965C15.61 13.4292 15.5709 13.4559 15.5283 13.4736C15.4859 13.4912 15.4404 13.4999 15.3945 13.5C15.3485 13.5 15.3023 13.4913 15.2598 13.4736C15.2171 13.4559 15.1781 13.4292 15.1455 13.3965L14.1152 12.3652V15.9902C14.1152 16.0831 14.0784 16.1726 14.0127 16.2383C13.947 16.3038 13.8575 16.3408 13.7646 16.3408H13.0625C12.9699 16.3407 12.881 16.3037 12.8154 16.2383C12.7498 16.1726 12.713 16.0831 12.7129 15.9902V12.3564L11.6729 13.3965C11.6073 13.4618 11.5183 13.4989 11.4258 13.499C11.3331 13.499 11.2434 13.4619 11.1777 13.3965L10.6816 12.9004C10.6491 12.8678 10.6231 12.8287 10.6055 12.7861C10.5879 12.7437 10.5791 12.6983 10.5791 12.6523C10.5791 12.6064 10.5879 12.561 10.6055 12.5186C10.6231 12.476 10.6491 12.4368 10.6816 12.4043L13.1621 9.92383ZM16.5938 1.66504C16.9044 1.66504 17.1562 1.91688 17.1562 2.22754V8.61133C17.156 8.84363 16.9677 9.03219 16.7354 9.03223H15.999C15.7667 9.03223 15.5774 8.84365 15.5771 8.61133V3.24316H2.42285V13.7676H8.8418C9.0742 13.7676 9.26254 13.9561 9.2627 14.1885V14.9258C9.26252 15.1581 9.07419 15.3467 8.8418 15.3467H1.40625C1.09567 15.3467 0.843886 15.0947 0.84375 14.7842V2.22754C0.84375 1.91688 1.09559 1.66504 1.40625 1.66504H16.5938ZM8.97461 4.82715C9.04868 4.82715 9.121 4.84952 9.18262 4.89062L12.0059 6.77734L11.1758 8.02539L10.0947 7.30273L10.0957 9.99512C10.0983 10.0391 10.0996 10.0833 10.0996 10.1279C10.0996 11.3706 9.09225 12.3779 7.84961 12.3779C6.60714 12.3777 5.59961 11.3704 5.59961 10.1279C5.59974 8.88552 6.60722 7.87813 7.84961 7.87793C8.11242 7.87793 8.36515 7.92304 8.59961 8.00586V5.20215C8.59961 4.99516 8.76767 4.82735 8.97461 4.82715ZM7.84961 9.37793C7.43565 9.37813 7.09974 9.71395 7.09961 10.1279C7.09961 10.542 7.43556 10.8777 7.84961 10.8779C8.26382 10.8779 8.59961 10.5421 8.59961 10.1279C8.59948 9.71383 8.26374 9.37793 7.84961 9.37793Z"/></svg>;
}

const IconUploadRadio = React.forwardRef(IconUploadRadioComponent);
export default IconUploadRadio;
