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

function IconUploadingPptComponent(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-uploading-ppt${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'none'} viewBox="0 0 32 32" {...rest} ref={ref}><path fill={useCurrentColor ? 'currentColor' : '#FF8D47'} stroke="#FF8D47" d="M8 2.5h9.793l9.707 9.707V26a3.5 3.5 0 0 1-3.5 3.5H8A3.5 3.5 0 0 1 4.5 26V6A3.5 3.5 0 0 1 8 2.5Z"/><path fill={useCurrentColor ? 'currentColor' : '#fff'} d="M12 25.485V20.8c0-.8.8-.8.8-.8h-2.72c-.265 0-.48.23-.48.514v4.971c0 .285.215.515.48.515h1.44c.265 0 .48-.23.48-.515Z" opacity=".8"/><path fill={useCurrentColor ? 'currentColor' : '#fff'} fillRule="evenodd" d="M19.296 16.608H9.9a.3.3 0 0 1-.3-.3V13.9a.3.3 0 0 1 .3-.3h10.82c.875 0 1.584.71 1.584 1.584v6.24c0 .875-.71 1.584-1.584 1.584H12V20h7.296v-3.392Z" clipRule="evenodd"/><path fill={useCurrentColor ? 'currentColor' : '#FFC6A3'} d="m18 2 10 10h-6a4 4 0 0 1-4-4V2Z"/></svg>;
}

const IconUploadingPpt = React.forwardRef(IconUploadingPptComponent);
export default IconUploadingPpt;
