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

function IconDiagramCracking2Component(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-diagram-cracking2${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 32 32" {...rest} ref={ref}><path d="m16.536 10.908 1.34 3.664-5 5.416 5 6.25-1.908 1.205H4.164a.664.664 0 0 1-.571-1.002l1.86-3.144a.665.665 0 0 1 .847-.267l2.587-7.108a.664.664 0 0 1 1.247-.003l1.1 2.98 1.196-2.615a.664.664 0 0 1 1.198-.02l.518 1.038 1.959-5.967a.646.646 0 0 1 .43-.427ZM8.973 5.583a2.647 2.647 0 1 1 0 5.295 2.647 2.647 0 0 1 0-5.295Z"/><path d="m23.103 20.32.766-1.524c.25-.5.97-.485 1.199.026l3.191 7.096a.664.664 0 0 1-.605.936h-8.146l1.909-1.206-5-6.458 4.661-4.857 2.025 5.986Z"/></svg>;
}

const IconDiagramCracking2 = React.forwardRef(IconDiagramCracking2Component);
export default IconDiagramCracking2;
