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

function IconAudioCycleComponent(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-audio-cycle${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 26 26" {...rest} ref={ref}><path d="M13 0c7.21 0 13 5.79 13 13s-5.79 13-13 13S0 20.21 0 13 5.79 0 13 0ZM8.042 7.575a.466.466 0 0 0-.466.467v3.208c0 .4.309.728.701.757h.007l.05.002h3.208c.257 0 .467-.21.467-.467v-.583a.467.467 0 0 0-.467-.467h-1.54a3.909 3.909 0 1 1-.69 3.803.45.45 0 0 0-.421-.303H8.21a.426.426 0 0 0-.414.543 5.425 5.425 0 1 0 1.296-5.297V8.042a.467.467 0 0 0-.466-.467h-.584ZM8.917 9.7l.175-.205.009-.009c-.063.07-.125.141-.184.214Z"/></svg>;
}

const IconAudioCycle = React.forwardRef(IconAudioCycleComponent);
export default IconAudioCycle;
