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

function IconOverviewRefreshComponent(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-overview_refresh${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 fillRule="evenodd" d="M14.5 10a.5.5 0 0 1-.5-.5v-1c0-.275.225-.5.5-.5h3.245a7 7 0 1 0 .964 6h2.067A9 9 0 1 1 19 6.341v-2.84a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5V9a1 1 0 0 1-.925.998L20 10h-5.5Z" clipRule="evenodd"/></svg>;
}

const IconOverviewRefresh = React.forwardRef(IconOverviewRefreshComponent);
export default IconOverviewRefresh;
