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

function IconAgentMicrophoneCloseComponent(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_close${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 d="M3.83591 3.83603C4.61696 3.05498 5.88298 3.05498 6.66403 3.83603L38.164 35.336L38.3017 35.4874C38.9425 36.2729 38.8963 37.4319 38.164 38.1642C37.4318 38.8964 36.2728 38.9426 35.4873 38.3018L35.3359 38.1642L3.83591 6.66416C3.05486 5.88311 3.05486 4.61708 3.83591 3.83603Z"/><path d="M7.875 18.125C8.97957 18.125 9.875 19.0204 9.875 20.125C9.875 26.2692 14.8558 31.25 21 31.25C22.0305 31.25 23.0252 31.1107 23.9678 30.8506C25.0325 30.5567 26.1339 31.1814 26.4277 32.2461C26.7216 33.3108 26.0969 34.4121 25.0322 34.7061C24.3714 34.8884 23.6926 35.0256 23 35.1172V38.5C23 39.6046 22.1046 40.5 21 40.5C19.8954 40.5 19 39.6046 19 38.5V35.1182C11.5921 34.1395 5.875 27.8003 5.875 20.125C5.875 19.0204 6.77043 18.125 7.875 18.125ZM22.0791 27.0283C21.7287 27.0906 21.3683 27.125 21 27.125C17.6172 27.125 14.875 24.3827 14.875 21V19.8242L22.0791 27.0283ZM34.125 18.125C35.2296 18.125 36.125 19.0204 36.125 20.125C36.125 22.1064 35.7432 24.0036 35.0469 25.7432L34.9609 25.9297C34.491 26.8276 33.4075 27.2412 32.4463 26.8564C31.4211 26.4458 30.9226 25.2822 31.333 24.2568L31.5137 23.7734C31.9094 22.6327 32.125 21.4059 32.125 20.125C32.125 19.0204 33.0204 18.125 34.125 18.125ZM26.5078 23.6797C25.9083 24.9096 24.9096 25.9083 23.6797 26.5078L14.875 17.7031V12.0469L26.5078 23.6797ZM21 3.5C24.3827 3.5 27.125 6.24226 27.125 9.625V21C27.125 21.3683 27.0906 21.7287 27.0283 22.0791L14.875 9.92578V9.625C14.875 6.24226 17.6172 3.5 21 3.5Z"/></svg>;
}

const IconAgentMicrophoneClose = React.forwardRef(IconAgentMicrophoneCloseComponent);
export default IconAgentMicrophoneClose;
