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

function IconZipSmallColorComponent(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-zip_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' : '#DFBC90'}/><path fill={useCurrentColor ? 'currentColor' : '#725501'} d="M7.16 0H10V2.84H7.16zM7.16 5.68H10V8.52H7.16zM7.16 11.359H10V14.199H7.16zM10 2.84H12.84V5.68H10zM10 8.52H12.84V11.36H10z"/></svg>;
}

const IconZipSmallColor = React.forwardRef(IconZipSmallColorComponent);
export default IconZipSmallColor;
