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

function IconAgentMicrophoneComponent(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-agent_microphone${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 42 42" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path opacity=".8" d="M34.125 18.125C35.2296 18.125 36.125 19.0204 36.125 20.125C36.125 27.8002 30.4079 34.1385 23 35.1172V38.5C23 39.6045 22.1045 40.5 21 40.5C19.8955 40.5 19 39.6045 19 38.5V35.1172C11.5921 34.1385 5.87504 27.8002 5.875 20.125C5.875 19.0204 6.77043 18.125 7.875 18.125C8.97957 18.125 9.875 19.0204 9.875 20.125C9.87504 26.2692 14.8558 31.25 21 31.25C27.1442 31.25 32.125 26.2692 32.125 20.125C32.125 19.0204 33.0204 18.125 34.125 18.125ZM21 3.5C24.3827 3.50001 27.125 6.2423 27.125 9.625V21C27.125 24.3827 24.3827 27.125 21 27.125C17.6173 27.125 14.875 24.3827 14.875 21V9.625C14.875 6.24229 17.6173 3.5 21 3.5Z"/></svg>;
}

const IconAgentMicrophone = React.forwardRef(IconAgentMicrophoneComponent);
export default IconAgentMicrophone;
