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

function IconArtifactsKnowledgeComponent(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-artifacts-knowledge${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="M4.921 2.733a1.6 1.6 0 0 0-1.6 1.6v2.135a1.6 1.6 0 0 0-1.434 2.118l1.235 3.6a1.6 1.6 0 0 0 1.513 1.08h6.73a1.6 1.6 0 0 0 1.512-1.08l1.236-3.6a1.6 1.6 0 0 0-1.435-2.118v-.904a1.6 1.6 0 0 0-1.577-1.6l-2.388-.035a.4.4 0 0 1-.27-.11l-.682-.646a1.6 1.6 0 0 0-1.101-.44H4.92ZM3.903 7.666H12.6a.4.4 0 0 1 .379.53l-1.236 3.6a.4.4 0 0 1-.378.27h-6.73a.4.4 0 0 1-.378-.27l-1.235-3.6a.4.4 0 0 1 .378-.53h.503Zm7.575-1.2v-.902a.4.4 0 0 0-.394-.4l-2.389-.035a1.6 1.6 0 0 1-1.078-.439l-.682-.647a.4.4 0 0 0-.275-.11H4.92a.4.4 0 0 0-.4.4v2.133h6.957Z" clipRule="evenodd"/></svg>;
}

const IconArtifactsKnowledge = React.forwardRef(IconArtifactsKnowledgeComponent);
export default IconArtifactsKnowledge;
