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

function IconBatchMovementComponent(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-batch-movement${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><path fillRule="evenodd" d="M14.3333 13.6667C14.5174 13.6667 14.6666 13.816 14.6666 14.0001V14.6667C14.6666 14.8508 14.5174 15.0001 14.3333 15.0001H1.66665C1.48255 15.0001 1.33331 14.8508 1.33331 14.6667V14.0001C1.33331 13.816 1.48255 13.6667 1.66665 13.6667H14.3333ZM14.3333 11.0001C14.5174 11.0001 14.6666 11.1493 14.6666 11.3334V12.0001C14.6666 12.1842 14.5174 12.3334 14.3333 12.3334H5.66665C5.48255 12.3334 5.33331 12.1842 5.33331 12.0001V11.3334C5.33331 11.1493 5.48255 11.0001 5.66665 11.0001H14.3333ZM8.4126 0.744068C8.5087 0.650347 8.65909 0.641827 8.76507 0.718508L8.79543 0.744068L13.2144 5.05341C13.3624 5.19774 13.3723 5.42577 13.244 5.58126L13.2144 5.61341L8.79543 9.92276C8.74466 9.97227 8.67581 10.0001 8.60401 10.0001C8.46601 10.0001 8.35213 9.89937 8.33542 9.76921L8.33331 9.73609V7.29217H7.8047C5.75269 7.29217 4.19809 7.96821 3.25477 9.18431C3.18971 9.26818 3.11251 9.37959 3.02317 9.51854C2.99627 9.56037 2.9521 9.588 2.90272 9.59389C2.81132 9.60479 2.72838 9.53954 2.71749 9.44814C2.68359 9.16395 2.66665 8.93381 2.66665 8.75774C2.66665 5.61442 5.14571 3.05942 8.22563 3.0011L8.33331 3.00008V0.930735C8.33331 0.860721 8.36183 0.793575 8.4126 0.744068ZM9.66665 3.45606V4.33341H8.33331C6.72389 4.33341 5.24262 5.23624 4.56858 6.66841C5.4623 6.2882 6.48797 6.03277 7.61579 6.00694L7.8047 6.00478H9.66665V7.21077L11.5918 5.33341L9.66665 3.45606Z" clipRule="evenodd"/></svg>;
}

const IconBatchMovement = React.forwardRef(IconBatchMovementComponent);
export default IconBatchMovement;
