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

function IconCircleUpwardComponent(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-circle-upward${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 14 14" {...rest} ref={ref}><path fillRule="evenodd" d="M7 .583a6.417 6.417 0 1 0 0 12.834A6.417 6.417 0 0 0 7 .583ZM7 1.75a5.25 5.25 0 1 1 0 10.5 5.25 5.25 0 0 1 0-10.5Zm2.504 5.542L7.171 4.958a.292.292 0 0 0-.385-.024l-.028.024-2.333 2.334a.292.292 0 0 0-.024.385l.024.027.413.413c.105.105.27.113.385.024l.027-.024 1.715-1.715 1.714 1.715c.105.105.27.113.385.024l.028-.024.412-.413a.292.292 0 0 0 .025-.385l-.025-.027-2.333-2.334 2.333 2.334Z" clipRule="evenodd"/></svg>;
}

const IconCircleUpward = React.forwardRef(IconCircleUpwardComponent);
export default IconCircleUpward;
