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

function IconStopRecordingFillComponent(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-stop-recording-fill${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 15 14" {...rest} ref={ref}><path fillRule="evenodd" d="M7.5.583a6.417 6.417 0 1 1 0 12.834A6.417 6.417 0 0 1 7.5.583Zm1.808 3.792a.817.817 0 0 1 .817.817v3.616a.817.817 0 0 1-.817.817H5.691a.817.817 0 0 1-.816-.817V5.192a.817.817 0 0 1 .816-.817h3.617Z" clipRule="evenodd"/></svg>;
}

const IconStopRecordingFill = React.forwardRef(IconStopRecordingFillComponent);
export default IconStopRecordingFill;
