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

function IconHMessageFilledComponent(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 || 'font';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-H-Message-filled${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 24 24" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M21.5999 12C21.5999 16.6392 17.3018 20.4 11.9999 20.4C10.2099 20.4 8.53439 19.9713 7.10002 19.2249L2.3999 20.4L4.00587 16.6527C2.99126 15.3207 2.3999 13.7208 2.3999 12C2.3999 7.36078 6.69797 3.59998 11.9999 3.59998C17.3018 3.59998 21.5999 7.36078 21.5999 12Z"/></svg>;
}

const IconHMessageFilled = React.forwardRef(IconHMessageFilledComponent);
export default IconHMessageFilled;
