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

function IconWorkflowMinificationComponent(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-workflow_minification${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 20 20" {...rest} ref={ref}><path fillRule="evenodd" d="M15.8333 8.66602C16.1095 8.66602 16.3333 8.88988 16.3333 9.16602V10.8327C16.3333 11.1088 16.1095 11.3327 15.8333 11.3327H4.16667C3.89053 11.3327 3.66667 11.1088 3.66667 10.8327V9.16602C3.66667 8.88988 3.89053 8.66602 4.16667 8.66602H15.8333Z" clipRule="evenodd"/></svg>;
}

const IconWorkflowMinification = React.forwardRef(IconWorkflowMinificationComponent);
export default IconWorkflowMinification;
