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

function IconPlatformManagementComponent(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-platform-management${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 24 24" {...rest} ref={ref}><g><path d="M9.998 17.067H2.525a.642.642 0 0 1-.642-.642V4.355a2.57 2.57 0 0 1 2.569-2.57h15.095a2.57 2.57 0 0 1 2.57 2.57v6.87l-1.203.124a1.21 1.21 0 0 1-1.227-.677l-.956-2.069A9.226 9.226 0 0 0 16.8 8.4c-.664 0-1.31.07-1.932.203l-.955 2.07a1.21 1.21 0 0 1-1.227.676l-2.352-.244A8.31 8.31 0 0 0 8.4 14.298l1.4 1.826c.212.277.278.623.198.943Zm.076 5.148H1.722a.723.723 0 0 1-.694-.925l.72-2.473a.642.642 0 0 1 .617-.463h6.762l-.727.948a8.278 8.278 0 0 0 1.674 2.913ZM4.8 5.7a.9.9 0 0 1 .9-.9h6.6a.9.9 0 0 1 0 1.8H5.7a.9.9 0 0 1-.9-.9Zm13.26 5.245a6.593 6.593 0 0 0-2.76 0l-.682 1.478a.864.864 0 0 1-.877.483l-1.68-.174a5.935 5.935 0 0 0-1.381 2.28l1 1.305a.79.79 0 0 1 0 .966l-1 1.304c.28.86.757 1.636 1.381 2.281l1.68-.174a.864.864 0 0 1 .877.483l.682 1.478a6.596 6.596 0 0 0 2.76 0l.682-1.478a.864.864 0 0 1 .877-.483l1.68.174a5.936 5.936 0 0 0 1.38-2.28l-.999-1.305a.788.788 0 0 1 0-.966l1-1.304a5.936 5.936 0 0 0-1.381-2.281l-1.68.175a.864.864 0 0 1-.877-.484l-.683-1.478ZM14.393 16.8c0-1.205 1.024-2.182 2.286-2.182s2.286.977 2.286 2.182-1.024 2.182-2.286 2.182-2.286-.977-2.286-2.182Z"/></g></svg>;
}

const IconPlatformManagement = React.forwardRef(IconPlatformManagementComponent);
export default IconPlatformManagement;
