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

function IconBailianComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-bailian${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 14 14" fill={useCurrentColor ? 'currentColor' : 'none'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><g clipPath="url(#svg_e0c24d8cc5__clip0_7915_3269)"><path d="M0.937714 3.5V10.5L3.969 8.75V5.25L0.937714 3.5Z" fill={useCurrentColor ? 'currentColor' : '#0423DB'}/><path d="M3.96899 5.25V8.75L6.99999 7L3.96899 5.25Z" fill={useCurrentColor ? 'currentColor' : '#1C54E4'}/><path d="M6.99999 7.00002L3.96899 5.25002L10.0298 1.74799L13.0623 3.50002L6.99999 7.00002Z" fill={useCurrentColor ? 'currentColor' : '#AB9BFF'}/><path d="M3.969 5.25L0.937714 3.5L7 0L10.0298 1.74796L3.969 5.25Z" fill={useCurrentColor ? 'currentColor' : '#7347FF'}/><path d="M13.0623 10.5L6.99999 14L3.96899 12.25L10.031 8.75L13.0623 10.5Z" fill={useCurrentColor ? 'currentColor' : '#00CFCA'}/><path d="M10.031 8.75L13.0623 7V10.5L10.031 8.75ZM3.969 12.25L0.937714 10.5L7 7L10.031 8.75L3.969 12.25Z" fill={useCurrentColor ? 'currentColor' : '#00EBD2'}/></g><defs><clipPath id="svg_e0c24d8cc5__clip0_7915_3269"><path fill={useCurrentColor ? 'currentColor' : '#fff'} d="M0 0H14V14H0z"/></clipPath></defs></svg>;
}

const IconBailian = React.forwardRef(IconBailianComponent);
export default IconBailian;
