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

function IconMermaidMagnifyComponent(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-mermaid-magnify${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 d="M7.505 1.45a6.056 6.056 0 0 1 6.055 6.055c0 1.428-.496 2.74-1.324 3.776l2.088 2.088a.3.3 0 0 1 0 .424l-.531.53a.3.3 0 0 1-.424 0l-2.088-2.087A6.056 6.056 0 1 1 7.505 1.45Zm0 1.35a4.706 4.706 0 1 0 0 9.41 4.706 4.706 0 0 0 0-9.41Zm.68 4.03h1.108a.3.3 0 0 1 .3.3v.75a.3.3 0 0 1-.3.3H8.184v1.108a.3.3 0 0 1-.3.3h-.75a.3.3 0 0 1-.3-.3V8.179H5.728a.3.3 0 0 1-.3-.3v-.75a.3.3 0 0 1 .3-.3h1.108V5.723a.3.3 0 0 1 .3-.3h.75a.3.3 0 0 1 .3.3V6.83Z"/></svg>;
}

const IconMermaidMagnify = React.forwardRef(IconMermaidMagnifyComponent);
export default IconMermaidMagnify;
