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

function IconContinuePretrainComponent(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-continue-pretrain${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 32 32" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M24.6523 10.5325C23.1956 10.5325 22.0117 9.36448 21.9861 7.91385C20.783 7.00654 19.3861 6.37772 17.8964 6.08142C15.9473 5.69372 13.9271 5.8927 12.0911 6.6532C10.255 7.4137 8.68579 8.70156 7.58171 10.3539C6.47764 12.0063 5.88835 13.9489 5.88835 15.9362C5.88835 17.9235 6.47764 19.8661 7.58172 21.5185C8.68579 23.1709 10.255 24.4587 12.0911 25.2192C13.9271 25.9797 15.9473 26.1787 17.8964 25.791C19.386 25.4947 20.7829 24.8659 21.986 23.9586C22.0079 22.5048 23.1933 21.333 24.6523 21.333C26.1251 21.333 27.319 22.5269 27.319 23.9997C27.319 25.4724 26.1251 26.6663 24.6523 26.6663C24.4448 26.6663 24.2428 26.6426 24.0488 26.5978C22.4343 27.8263 20.5551 28.6771 18.5499 29.0759C15.9511 29.5928 13.2573 29.3275 10.8093 28.3135C8.36133 27.2995 6.26898 25.5824 4.79689 23.3793C3.32479 21.1761 2.53906 18.5859 2.53906 15.9362C2.53906 13.2865 3.32479 10.6963 4.79689 8.49316C6.26898 6.29001 8.36133 4.57286 10.8093 3.55887C13.2573 2.54487 15.9511 2.27956 18.5498 2.79649C20.5522 3.19479 22.4289 4.04369 24.0419 5.2694C24.238 5.2235 24.4423 5.19922 24.6523 5.19922C26.1251 5.19922 27.319 6.39312 27.319 7.86588C27.319 9.33864 26.1251 10.5325 24.6523 10.5325Z"/><ellipse cx="15.977" cy="15.978" rx="4.004" ry="8.675" transform="rotate(45 15.977 15.978)" opacity=".5"/><ellipse cx="16.023" cy="16.023" rx="4.004" ry="8.675" transform="rotate(-45 16.023 16.023)"/></svg>;
}

const IconContinuePretrain = React.forwardRef(IconContinuePretrainComponent);
export default IconContinuePretrain;
