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

function IconAIPAccessComponent(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-AIPAccess${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 d="M12.991 4.168a2.991 2.991 0 1 1-5.983 0 2.991 2.991 0 0 1 5.983 0ZM6.729 15.342a2.991 2.991 0 1 1-5.983 0 2.991 2.991 0 0 1 5.983 0Zm12.525 0a2.991 2.991 0 1 1-5.983 0 2.991 2.991 0 0 1 5.983 0Z"/><path fillRule="evenodd" d="M11.548 6.727A2.977 2.977 0 0 1 10 7.16a2.977 2.977 0 0 1-1.549-.432l-2.995 1.73a.833.833 0 0 0-.416.721v3.47A2.992 2.992 0 0 1 6.728 15.4l2.855 1.649a.833.833 0 0 0 .834 0l2.855-1.649v-.058a2.99 2.99 0 0 1 1.689-2.694v-3.47a.833.833 0 0 0-.417-.721l-2.996-1.73ZM9.793 9.25a.417.417 0 0 1 .416 0l1.69.976a.417.417 0 0 1 .21.36v1.952c0 .15-.08.287-.21.361l-1.69.976a.417.417 0 0 1-.416 0l-1.69-.976a.417.417 0 0 1-.21-.36v-1.953c0-.149.08-.286.21-.36l1.69-.976Z" clipRule="evenodd" opacity=".5"/></svg>;
}

const IconAIPAccess = React.forwardRef(IconAIPAccessComponent);
export default IconAIPAccess;
