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

function IconPromptTaskExecutionComponent(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-prompt_task-execution${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="M4.208 1.846a.6.6 0 0 1 .848.847L3.034 4.716a.6.6 0 0 1-.848 0l-1.01-1.012a.599.599 0 1 1 .847-.847l.587.586 1.598-1.597Zm0 4.717a.6.6 0 0 1 .848.848L3.034 9.433a.6.6 0 0 1-.848 0l-1.01-1.012a.599.599 0 1 1 .847-.847l.587.587 1.598-1.598Zm0 4.717a.6.6 0 0 1 .848.848L3.034 14.15a.6.6 0 0 1-.848 0l-1.01-1.012a.599.599 0 1 1 .847-.847l.587.586 1.598-1.597Zm10.198-3.882a.6.6 0 0 1 0 1.2H6.992a.6.6 0 1 1 0-1.2h7.414Zm0 4.717a.6.6 0 0 1 0 1.2H6.992a.6.6 0 1 1 0-1.2h7.414Zm0-9.435a.6.6 0 0 1 0 1.2H6.992a.6.6 0 1 1 0-1.2h7.414Z"/></svg>;
}

const IconPromptTaskExecution = React.forwardRef(IconPromptTaskExecutionComponent);
export default IconPromptTaskExecution;
