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

function IconGitMergeComponent(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-git-merge${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 48 48" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M30.3332 13.0691L29 12.5979V18.7961L19.5186 10.4998L29 2.20361V8.6173L29.8011 8.77991C36.1909 10.077 41 15.7279 41 22.4998V34.3793L41.4993 34.6681C42.9964 35.5342 44 37.1504 44 38.9998C44 41.7613 41.7614 43.9998 39 43.9998C36.2386 43.9998 34 41.7613 34 38.9998C34 37.1504 35.0036 35.5342 36.5007 34.6681L37 34.3793V22.4998C37 18.1442 34.2159 14.4414 30.3332 13.0691ZM11.4993 13.3315L11 13.6204L11 34.3793L11.4993 34.6681C12.9964 35.5342 14 37.1504 14 38.9998C14 41.7613 11.7614 43.9998 9 43.9998C6.23858 43.9998 4 41.7613 4 38.9998C4 37.1504 5.00361 35.5342 6.50073 34.6681L7 34.3793L7 13.6204L6.50072 13.3315C5.00361 12.4655 4 10.8493 4 8.99985C4 6.23842 6.23858 3.99985 9 3.99985C11.7614 3.99985 14 6.23842 14 8.99985C14 10.8493 12.9964 12.4655 11.4993 13.3315Z"/></svg>;
}

const IconGitMerge = React.forwardRef(IconGitMergeComponent);
export default IconGitMerge;
