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

function IconCodeSmallColorComponent(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-code_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' : '#75B2B6'} fillOpacity=".2"/><path d="M8.2627 6.62939L4.89258 9.99951 8.2627 13.3696 6.84863 14.7847 2.06445 10.0005 6.84863 5.21533 8.2627 6.62939zM11.7373 6.62939L15.1074 9.99951 11.7373 13.3696 13.1514 14.7847 17.9355 10.0005 13.1514 5.21533 11.7373 6.62939z" fill={useCurrentColor ? 'currentColor' : '#75B2B6'}/></svg>;
}

const IconCodeSmallColor = React.forwardRef(IconCodeSmallColorComponent);
export default IconCodeSmallColor;
