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

function IconTreeKnowledgeRetrievalComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-tree_knowledge_retrieval${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 24 24" fill={useCurrentColor ? 'currentColor' : 'none'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><g clipPath="url(#svg_8bedce4e54__clip0_37122_1120080)"><path d="M16.8 0H7.2C3.22355 0 0 3.22355 0 7.2V16.8C0 20.7765 3.22355 24 7.2 24H16.8C20.7765 24 24 20.7765 24 16.8V7.2C24 3.22355 20.7765 0 16.8 0Z" fill={useCurrentColor ? 'currentColor' : '#F6BB45'}/><g fill={useCurrentColor ? 'currentColor' : '#fff'}><path d="M13.8717 5.00037C14.018 5.00033 14.1585 5.05745 14.263 5.15974L18.1327 8.94022C18.1857 8.99231 18.2281 9.05442 18.2569 9.12303C18.2857 9.19183 18.3003 9.26638 18.3002 9.34099C18.3002 10.8934 18.2895 12.4323 18.2791 13.9734C17.9713 13.4028 17.5232 12.9185 16.9725 12.573C16.3746 12.1982 15.6813 12 14.9756 12H14.7073L14.6943 12.0117C14.1927 12.0494 13.7017 12.1868 13.2529 12.4183C12.7208 12.6931 12.2618 13.0916 11.9146 13.5797C11.5676 14.0679 11.343 14.633 11.2584 15.2262C11.1739 15.8195 11.2314 16.425 11.4283 16.991C11.6253 17.5571 11.9558 18.0678 12.3904 18.4805C12.601 18.6804 12.8338 18.8539 13.083 18.9996H6.26036C5.95056 18.9996 5.70038 18.7495 5.7002 18.4406V5.55935C5.70051 5.4112 5.75951 5.2692 5.86426 5.16443C5.96928 5.05957 6.11195 5.0004 6.26036 5.00037H13.8717ZM12.3435 17.4047C12.3187 17.3649 12.294 17.3249 12.2709 17.2839L12.1842 17.1199C12.2319 17.2177 12.2859 17.3125 12.3435 17.4047ZM17.9358 14.8077L17.9943 15.0164C17.9696 14.9156 17.9379 14.8167 17.9029 14.7187C17.9134 14.7486 17.9262 14.7777 17.9358 14.8077ZM17.774 14.4024C17.8195 14.4962 17.858 14.5931 17.8935 14.6906C17.8579 14.5934 17.8182 14.4973 17.7728 14.4035C17.7518 14.36 17.7278 14.318 17.7049 14.2758C17.7278 14.3179 17.7531 14.3591 17.774 14.4024ZM16.6279 13.1238L16.438 13.0148C16.5022 13.049 16.5661 13.085 16.6279 13.1238ZM8.15058 11.3004C8.05798 11.3004 7.96895 11.337 7.90332 11.4023C7.83772 11.4678 7.80048 11.5569 7.8002 11.6496V12.3504C7.8002 12.5436 7.95738 12.6996 8.15058 12.6996H11.6498C11.843 12.6996 12.0002 12.5436 12.0002 12.3504V11.6496C11.9999 11.5569 11.9627 11.4678 11.8971 11.4023C11.8314 11.337 11.7424 11.3004 11.6498 11.3004H8.15058ZM14.9756 12.6504C14.8982 12.6504 14.8204 12.6529 14.7435 12.6585L14.5138 12.6843C14.6661 12.6613 14.8207 12.6504 14.9756 12.6504ZM8.15058 7.79998C8.05773 7.79998 7.969 7.83747 7.90332 7.90311C7.83765 7.96878 7.80021 8.05749 7.8002 8.15037V8.84998C7.8002 9.04318 7.95738 9.20037 8.15058 9.20037H11.6498C11.843 9.20037 12.0002 9.04318 12.0002 8.84998V8.15037C12.0002 8.05749 11.9627 7.96878 11.8971 7.90311C11.8314 7.83747 11.7427 7.79998 11.6498 7.79998H8.15058Z"/><path d="M15.0142 13.5004C15.4453 13.5004 15.8686 13.6219 16.2339 13.851C16.599 14.0799 16.8919 14.4073 17.0796 14.7953C17.2674 15.1835 17.3426 15.6167 17.2954 16.0453C17.2655 16.3165 17.187 16.5788 17.0659 16.8207L18.0767 17.8138C18.3128 18.046 18.3164 18.4251 18.0845 18.6615C17.8523 18.8979 17.4722 18.9015 17.2358 18.6693L16.2642 17.7152C16.0183 17.8752 15.7447 17.9886 15.4556 18.0453C15.0964 18.1156 14.725 18.0997 14.3735 17.9974C14.0222 17.8952 13.7006 17.7102 13.4351 17.4584C13.1696 17.2063 12.9675 16.8939 12.8472 16.5482C12.7269 16.2027 12.6911 15.8333 12.7427 15.4711C12.7943 15.1087 12.932 14.7636 13.144 14.4652C13.3562 14.1669 13.6371 13.9241 13.9624 13.7562C14.2877 13.5884 14.6481 13.5004 15.0142 13.5004Z"/></g></g><defs><clipPath id="svg_8bedce4e54__clip0_37122_1120080"><rect width="24" height="24" rx="6" fill={useCurrentColor ? 'currentColor' : '#fff'}/></clipPath></defs></svg>;
}

const IconTreeKnowledgeRetrieval = React.forwardRef(IconTreeKnowledgeRetrievalComponent);
export default IconTreeKnowledgeRetrieval;
