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

function IconExcelSmallColorComponent(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 || 'font';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-excel_small_color${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><rect width="20" height="20" rx="5" fill={useCurrentColor ? 'currentColor' : '#69B889'} fillOpacity=".2"/><path d="M5.272 4H7.4L10.184 8.128L12.968 4H15.096L11.224 9.52L15.368 15.424H13.24L10.184 10.896L7.128 15.424H5L9.112 9.52L5.272 4Z" fill={useCurrentColor ? 'currentColor' : '#69B889'}/></svg>;
}

const IconExcelSmallColor = React.forwardRef(IconExcelSmallColorComponent);
export default IconExcelSmallColor;
