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

function IconResourceAdministrationComponent(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-resource-administration${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="M16.587 11.8v3.8a.7.7 0 0 1-.7.7H4.113a.7.7 0 0 1-.7-.7v-3.8H1.7a.7.7 0 0 0-.7.7v5.8a.7.7 0 0 0 .7.7h16.6a.7.7 0 0 0 .7-.7v-5.8a.7.7 0 0 0-.7-.7h-1.713Z" clipRule="evenodd" opacity=".5"/><path fillRule="evenodd" d="M17 5.772V15.6a.7.7 0 0 1-.7.7H3.7a.7.7 0 0 1-.7-.7V1.7a.7.7 0 0 1 .7-.7h8.615a.7.7 0 0 1 .5.21L16.8 5.282a.7.7 0 0 1 .2.49ZM7.8 5a1.8 1.8 0 0 0 0 3.6h1.48a.32.32 0 0 0 .32-.32V6.8A1.8 1.8 0 0 0 7.8 5Zm2.92 4.4a.32.32 0 0 0-.32.32v1.48a1.8 1.8 0 1 0 1.8-1.8h-1.48ZM6 11.2a1.8 1.8 0 0 1 1.8-1.8h1.48a.32.32 0 0 1 .32.32v1.48a1.8 1.8 0 0 1-3.6 0Zm4.4-4.4a1.8 1.8 0 1 1 1.8 1.8h-1.48a.32.32 0 0 1-.32-.32V6.8Z" clipRule="evenodd"/><path d="M6 6.8a1.8 1.8 0 1 1 3.6 0v1.48a.32.32 0 0 1-.32.32H7.8A1.8 1.8 0 0 1 6 6.8Zm4.4 2.92a.32.32 0 0 1 .32-.32h1.48a1.8 1.8 0 1 1-1.8 1.8V9.72ZM6 11.2a1.8 1.8 0 0 1 1.8-1.8h1.48a.32.32 0 0 1 .32.32v1.48a1.8 1.8 0 0 1-3.6 0Z" opacity=".5"/></svg>;
}

const IconResourceAdministration = React.forwardRef(IconResourceAdministrationComponent);
export default IconResourceAdministration;
