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

function IconNodeSuccessfullyInvokedComponent(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-node_successfully_invoked${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 18 18" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M16.0612 8.67852L17.9658 10.667C18.0114 10.7146 18.0114 10.7917 17.9658 10.8393C17.9439 10.8622 17.9143 10.875 17.8833 10.875L16.6504 10.8752C15.8091 14.3191 12.703 16.875 9 16.875C5.29684 16.875 2.19067 14.3189 1.34955 10.8749L2.90515 10.8748C3.70577 13.4807 6.13166 15.375 9 15.375C11.8682 15.375 14.294 13.4809 15.0947 10.8752L13.9917 10.875C13.9272 10.875 13.875 10.8205 13.875 10.7532C13.875 10.7209 13.8873 10.6899 13.9092 10.667L15.8137 8.67852C15.8821 8.60716 15.9929 8.60716 16.0612 8.67852ZM12.494 6.08318L13.0243 6.61351C13.1708 6.75996 13.1708 6.9974 13.0243 7.14384L8.25134 11.9168C8.10489 12.0633 7.86746 12.0633 7.72101 11.9168L4.9757 9.1715C4.82925 9.02505 4.82925 8.78762 4.9757 8.64117L5.50602 8.11084C5.65247 7.96439 5.88991 7.96439 6.03636 8.11084L7.98611 10.0606L11.9636 6.08318C12.1101 5.93674 12.3475 5.93674 12.494 6.08318ZM0.116673 7.125H4.00833C4.03927 7.125 4.06895 7.13783 4.09083 7.16068C4.12988 7.20145 4.13546 7.26395 4.10756 7.31093L4.09083 7.33295L2.18625 9.32148C2.12645 9.38392 2.03413 9.39172 1.9662 9.3449L1.93875 9.32148L0.0341726 7.33295C0.0122923 7.31011 0 7.27912 0 7.24682C0 7.18915 0.0383776 7.14084 0.0899207 7.12822L0.116673 7.125H4.00833H0.116673ZM9 1.125C12.7032 1.125 15.8093 3.68106 16.6504 7.12514L15.0949 7.12517C14.2942 4.51933 11.8683 2.625 9 2.625C6.1318 2.625 3.706 4.51915 2.90526 7.12479L1.34964 7.12476C2.1909 3.68087 5.29697 1.125 9 1.125Z"/></svg>;
}

const IconNodeSuccessfullyInvoked = React.forwardRef(IconNodeSuccessfullyInvokedComponent);
export default IconNodeSuccessfullyInvoked;
