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

function IconUploadImage1Component(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_image_1${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}><path fillRule="evenodd" clipRule="evenodd" d="M15.25 1.98C15.25 1.70386 15.0261 1.48 14.75 1.48H1.25C0.973858 1.48 0.75 1.70386 0.75 1.98V13.1413C0.75 13.4174 0.973857 13.6413 1.25 13.6413H7.85968C8.06634 13.6413 8.23387 13.4738 8.23387 13.2671V12.6123C8.23387 12.4056 8.06634 12.2381 7.85968 12.2381H2.15323V10.8916L5.66128 7.38353L8.20314 9.92538C8.34927 10.0715 8.5862 10.0715 8.73233 9.92538L9.19537 9.46234C9.3415 9.31621 9.3415 9.07929 9.19537 8.93315L6.55429 6.29208C6.06109 5.79888 5.26147 5.79888 4.76827 6.29208L2.15323 8.90712V2.88323H13.8468V7.65419C13.8468 7.86086 14.0143 8.02839 14.221 8.02839H14.8758C15.0825 8.02839 15.25 7.86086 15.25 7.65419V1.98ZM13.1452 5.45581C13.1452 6.23079 12.5169 6.85903 11.7419 6.85903C10.967 6.85903 10.3387 6.23079 10.3387 5.45581C10.3387 4.68082 10.967 4.05258 11.7419 4.05258C12.5169 4.05258 13.1452 4.68082 13.1452 5.45581ZM14.345 11.0261L12.14 8.82121C12.0175 8.69959 11.821 8.69959 11.6994 8.82121L9.4945 11.0261C9.46556 11.0551 9.44261 11.0894 9.42695 11.1272C9.41129 11.165 9.40323 11.2055 9.40323 11.2465C9.40323 11.2874 9.41129 11.3279 9.42695 11.3657C9.44261 11.4035 9.46556 11.4378 9.4945 11.4668L9.93604 11.9083C9.99443 11.9665 10.0735 11.9991 10.1559 11.9991C10.2383 11.9991 10.3173 11.9665 10.3757 11.9083L11.3 10.9831V14.2133C11.3 14.296 11.3328 14.3752 11.3912 14.4336C11.4496 14.492 11.5289 14.5249 11.6115 14.5249H12.2355C12.3181 14.5249 12.3973 14.492 12.4557 14.4336C12.5142 14.3752 12.547 14.296 12.547 14.2133V10.9915L13.4628 11.9083C13.4918 11.9374 13.5262 11.9605 13.5641 11.9762C13.6019 11.9919 13.6426 12 13.6836 12C13.7246 12 13.7652 11.9919 13.8031 11.9762C13.841 11.9605 13.8754 11.9374 13.9044 11.9083L14.345 11.4668C14.4666 11.3451 14.4666 11.1478 14.345 11.0261Z"/></svg>;
}

const IconUploadImage1 = React.forwardRef(IconUploadImage1Component);
export default IconUploadImage1;
