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

function IconMemoryEmbeddingComponent(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-memory_embedding${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 14 14" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><g clipPath="url(#svg_0ab4b9f50d__clip0_3937_3044)"><path d="M6.75 0.144868C6.9047 0.0555517 7.0953 0.0555517 7.25 0.144868L12.8125 3.35581C12.9671 3.44515 13.0625 3.61085 13.0625 3.7894V10.2113L13.0576 10.2777C13.0372 10.43 12.9477 10.5667 12.8125 10.6449L7.25 13.8558C7.11467 13.9338 6.95173 13.9437 6.80957 13.8851L6.75 13.8558L1.1875 10.6449C1.03299 10.5556 0.937621 10.3897 0.9375 10.2113V3.7894C0.9375 3.61092 1.03303 3.44518 1.1875 3.35581L6.75 0.144868ZM2.66895 3.8851L4.0791 4.69956C4.36568 4.86528 4.46319 5.23209 4.29785 5.5189C4.13222 5.80573 3.76543 5.905 3.47852 5.7396L2.1377 4.96518V9.80698L6.39941 12.2669V11.1C6.39962 10.7689 6.66893 10.5005 7 10.5003C7.33106 10.5006 7.5994 10.7689 7.59961 11.1V12.2679L11.8623 9.80698V5.02182L10.6191 5.7396C10.3323 5.9048 9.96538 5.80567 9.7998 5.5189C9.63458 5.2321 9.73298 4.86524 10.0195 4.69956L11.3799 3.91343L7 1.3851L2.66895 3.8851ZM6.47559 3.95444C6.69046 3.51468 7.30955 3.51468 7.52441 3.95444C8.31064 5.56743 8.26915 5.53251 9.89355 6.29331C10.3449 6.50501 10.3445 7.1375 9.8916 7.34604L9.3584 7.59214C8.27336 8.1042 8.21368 8.26362 7.53809 9.85581L7.49414 9.9398C7.2685 10.3063 6.7315 10.3063 6.50586 9.9398L6.46191 9.85581C5.78632 8.26362 5.72664 8.1042 4.6416 7.59214L4.1084 7.34604C3.65553 7.13751 3.65514 6.50501 4.10645 6.29331C5.73083 5.53251 5.68936 5.56742 6.47559 3.95444ZM7 5.42222C6.8252 5.73377 6.63746 6.0118 6.40039 6.24643C6.17297 6.47143 5.90654 6.6502 5.60938 6.81479C5.91247 6.98298 6.18845 7.17339 6.42188 7.42026C6.65137 7.66306 6.83322 7.95334 7 8.28257C7.16678 7.95334 7.34863 7.66306 7.57812 7.42026C7.81136 7.1736 8.08685 6.98288 8.38965 6.81479C8.09278 6.65031 7.82685 6.47125 7.59961 6.24643C7.36253 6.01179 7.1748 5.73378 7 5.42222Z"/></g><defs><clipPath id="svg_0ab4b9f50d__clip0_3937_3044"><path d="M0 0H14V14H0z"/></clipPath></defs></svg>;
}

const IconMemoryEmbedding = React.forwardRef(IconMemoryEmbeddingComponent);
export default IconMemoryEmbedding;
