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

function IconCommentApplyComponent(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-comment_apply${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><path fillRule="evenodd" d="M3.6 2.067a2.2 2.2 0 0 0-2.2 2.2v5.942a2.2 2.2 0 0 0 2.2 2.2h2.738l1.313 1.344a.6.6 0 0 0 .855.003l1.334-1.347h2.56a2.2 2.2 0 0 0 2.2-2.2V4.268a2.2 2.2 0 0 0-2.2-2.2H3.6Zm-1 2.2a1 1 0 0 1 1-1h8.8a1 1 0 0 1 1 1v5.942a1 1 0 0 1-1 1H9.59a.6.6 0 0 0-.426.178l-1.081 1.091-1.064-1.088a.6.6 0 0 0-.429-.18H3.6a1 1 0 0 1-1-1V4.267ZM6 6.733a.6.6 0 0 0 0 1.2h4a.6.6 0 1 0 0-1.2H6Z" clipRule="evenodd"/></svg>;
}

const IconCommentApply = React.forwardRef(IconCommentApplyComponent);
export default IconCommentApply;
