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

function IconReleaseManagementComponent(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-release_management${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 20 20" {...rest} ref={ref}><path fillRule="evenodd" d="M2.083 1.668v5.416l.004.074a.833.833 0 0 0 .24.516L4.655 10l-2.328 2.33-.05.054a.834.834 0 0 0-.194.535v5.416l.003.063c.042.595.69.96 1.227.67l15.417-8.333.058-.034a.833.833 0 0 0-.058-1.432L3.313.935 3.257.907a.833.833 0 0 0-1.174.76ZM4.655 10l-.832.832H10c.23 0 .417-.186.417-.416v-.834A.417.417 0 0 0 10 9.167H3.82l.835.834Z" clipRule="evenodd"/></svg>;
}

const IconReleaseManagement = React.forwardRef(IconReleaseManagementComponent);
export default IconReleaseManagement;
