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

function IconSystemTimeoutComponent(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-system_timeout${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 20 20" {...rest} ref={ref}><path fillRule="evenodd" d="M17.792 10a7.792 7.792 0 1 1-15.584 0 7.792 7.792 0 0 1 15.584 0Zm-11.334.354c0 .196.159.354.355.354h3.541l.042-.002a.354.354 0 0 0 .312-.352V5.396a.354.354 0 0 0-.354-.354h-.708a.354.354 0 0 0-.354.354v3.896h-2.48a.354.354 0 0 0-.354.354v.708Z" clipRule="evenodd"/></svg>;
}

const IconSystemTimeout = React.forwardRef(IconSystemTimeoutComponent);
export default IconSystemTimeout;
