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

function IconAgentproConfigurationComponent(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-agentpro-configuration${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="M8.391.79a6.325 6.325 0 0 0-2.782 0l-.261.06-.816 1.858-2.007-.219-.181.197a6.364 6.364 0 0 0-1.391 2.42l-.08.253L2.067 7 1.03 8.425l-.157.215.079.254c.279.9.754 1.726 1.391 2.42l.182.197 2.007-.22.708 1.614.108.245.261.06a6.321 6.321 0 0 0 2.781 0l.263-.059.814-1.86 2.008.22.181-.197a6.363 6.363 0 0 0 1.392-2.42l.079-.253L11.933 7l1.039-1.425.156-.216-.079-.253a6.364 6.364 0 0 0-1.39-2.42l-.183-.197-2.008.22-.816-1.86-.26-.059ZM6.1 1.774a5.282 5.282 0 0 1 1.8 0l.653 1.49a.868.868 0 0 0 .89.514l1.605-.176c.39.468.696.998.905 1.57l-.959 1.316a.868.868 0 0 0 0 1.022l.96 1.317a5.303 5.303 0 0 1-.904 1.57l-1.606-.175a.868.868 0 0 0-.89.513l-.653 1.49a5.28 5.28 0 0 1-1.799 0l-.653-1.49a.867.867 0 0 0-.89-.514l-1.606.176a5.303 5.303 0 0 1-.903-1.57l.96-1.317a.868.868 0 0 0 0-1.022l-.962-1.316a5.303 5.303 0 0 1 .903-1.57l1.607.175a.868.868 0 0 0 .89-.513l.652-1.49ZM7 4.349A2.647 2.647 0 0 1 9.643 7 2.647 2.647 0 0 1 7 9.651 2.647 2.647 0 0 1 4.359 7 2.646 2.646 0 0 1 7 4.349ZM5.42 7c0-.88.71-1.59 1.58-1.59.874 0 1.582.71 1.582 1.59 0 .88-.709 1.59-1.581 1.59A1.585 1.585 0 0 1 5.42 7Z" clipRule="evenodd"/></svg>;
}

const IconAgentproConfiguration = React.forwardRef(IconAgentproConfigurationComponent);
export default IconAgentproConfiguration;
