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

function IconTouchpadModeWorkflowComponent(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-mode-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="M18.9 1.2a3.6 3.6 0 0 1 3.6 3.6v14.4l-.005.185a3.6 3.6 0 0 1-3.41 3.41l-.185.005H5.1l-.185-.005a3.6 3.6 0 0 1-3.41-3.41L1.5 19.2V4.8a3.6 3.6 0 0 1 3.6-3.6h13.8ZM5.1 3.6a1.2 1.2 0 0 0-1.2 1.2v14.4a1.2 1.2 0 0 0 1.2 1.2h13.8a1.2 1.2 0 0 0 1.2-1.2V4.8a1.2 1.2 0 0 0-1.077-1.195L18.9 3.6H5.1Zm9.9 12a1.2 1.2 0 0 1 0 2.4H9a1.2 1.2 0 0 1 0-2.4h6Z"/></svg>;
}

const IconTouchpadModeWorkflow = React.forwardRef(IconTouchpadModeWorkflowComponent);
export default IconTouchpadModeWorkflow;
