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

function IconKnowledgeMinusComponent(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-knowledge-minus${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="M2 7.99987C2 7.55805 2.35817 7.19987 2.8 7.19987H13.2C13.6418 7.19987 14 7.55805 14 7.99987C14 8.4417 13.6418 8.79987 13.2 8.79987H2.8C2.35817 8.79987 2 8.4417 2 7.99987Z" clipRule="evenodd"/></svg>;
}

const IconKnowledgeMinus = React.forwardRef(IconKnowledgeMinusComponent);
export default IconKnowledgeMinus;
