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

function IconAudioPlayComponent(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-play${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 0C5.79 0 0 5.79 0 13s5.79 13 13 13 13-5.79 13-13S20.21 0 13 0Zm4.904 14.3-5.554 3.19a1.483 1.483 0 0 1-2.245-1.3V9.81c0-1.124 1.24-1.833 2.245-1.3l5.554 3.19c.946.59.946 2.01 0 2.6Z"/></svg>;
}

const IconAudioPlay = React.forwardRef(IconAudioPlayComponent);
export default IconAudioPlay;
