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

function IconWorkflowFreedomComponent(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_freedom${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><path d="M1 15v1H0v-1h1Zm4 0v1H3v-1h2Zm4 0v1H7v-1h2Zm4 0v1h-2v-1h2Zm3 0v1h-1v-1h1ZM1 11v2H0v-2h1Zm15 0v2h-1v-2h1ZM1 7v2H0V7h1Zm15 0v2h-1V7h1ZM1 3v2H0V3h1Zm15 0v2h-1V3h1ZM1 0v1H0V0h1Zm4 0v1H3V0h2Zm4 0v1H7V0h2Zm4 0v1h-2V0h2Zm3 0v1h-1V0h1Z"/></svg>;
}

const IconWorkflowFreedom = React.forwardRef(IconWorkflowFreedomComponent);
export default IconWorkflowFreedom;
