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

function IconVideoAgentKnowledgeComponent(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-video-agent-knowledge${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 12 12" {...rest} ref={ref}><path d="M8.375.9c.915 0 1.564.758 1.574 1.58l.12-.093a1.1 1.1 0 0 1 1.78.863V9a1.1 1.1 0 0 1-1.78.863l-.141-.111c-.117.727-.725 1.348-1.553 1.348h-6.65C.802 11.1.15 10.33.15 9.5v-7C.15 1.67.802.9 1.725.9h6.65ZM1.725 2a.488.488 0 0 0-.475.5v7c0 .276.212.5.475.5h6.65a.488.488 0 0 0 .475-.5v-2l1.9 1.5V3.25l-1.9 1.5V2.5c0-.276-.213-.5-.475-.5h-6.65Zm1.988 1.313c.662 0 1.201.537 1.201 1.2a1.2 1.2 0 1 1-1.201-1.2Z"/></svg>;
}

const IconVideoAgentKnowledge = React.forwardRef(IconVideoAgentKnowledgeComponent);
export default IconVideoAgentKnowledge;
