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

function IconTouchpadMouseWorkflowComponent(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-touchpad-mouse-workflow${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 24 24" {...rest} ref={ref}><path d="M12 .6A8.4 8.4 0 0 1 20.4 9v6l-.01.432A8.4 8.4 0 0 1 3.6 15V9A8.4 8.4 0 0 1 12 .6ZM12 3a6 6 0 0 0-6 6v6a6 6 0 0 0 12 0V9a6 6 0 0 0-6-6Zm0 1.8A1.2 1.2 0 0 1 13.2 6v3.6a1.2 1.2 0 0 1-2.4 0V6A1.2 1.2 0 0 1 12 4.8Z"/></svg>;
}

const IconTouchpadMouseWorkflow = React.forwardRef(IconTouchpadMouseWorkflowComponent);
export default IconTouchpadMouseWorkflow;
