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

function IconToolsWorkflowComponent(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 || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-tools_workflow${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'none'} viewBox="0 0 24 24" {...rest} ref={ref}><g><path fill={useCurrentColor ? 'currentColor' : '#669AFF'} d="M16.8 0H7.2A7.2 7.2 0 0 0 0 7.2v9.6A7.2 7.2 0 0 0 7.2 24h9.6a7.2 7.2 0 0 0 7.2-7.2V7.2A7.2 7.2 0 0 0 16.8 0Z"/><path fill={useCurrentColor ? 'currentColor' : '#fff'} d="M5.8 5h4.7a.8.8 0 0 1 .8.8v4.7a.8.8 0 0 1-.8.8H5.8a.8.8 0 0 1-.8-.8V5.8a.8.8 0 0 1 .8-.8Zm6.9 8.5a.8.8 0 0 1 .8-.8h4.7a.8.8 0 0 1 .8.8v4.7a.8.8 0 0 1-.8.8h-4.7a.8.8 0 0 1-.8-.8v-4.7Zm-5.085-.783L5.201 15.13a.8.8 0 0 0 0 1.132l2.414 2.414a.8.8 0 0 0 1.132 0l2.414-2.414a.8.8 0 0 0 0-1.132l-2.414-2.414a.8.8 0 0 0-1.132 0ZM19 8.15a3.15 3.15 0 1 1-6.3 0 3.15 3.15 0 0 1 6.3 0Z"/></g></svg>;
}

const IconToolsWorkflow = React.forwardRef(IconToolsWorkflowComponent);
export default IconToolsWorkflow;
