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

function IconSelfBuiltResourcesComponent(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-self-built-resources${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 18 18" {...rest} ref={ref}><path fillRule="evenodd" d="M7.658 7.333c0-.373.302-.675.675-.675h4a.675.675 0 1 1 0 1.35h-4a.675.675 0 0 1-.675-.675Zm0 6c0-.373.302-.675.675-.675h4a.675.675 0 1 1 0 1.35h-4a.675.675 0 0 1-.675-.675Zm0-8.667c0-.373.302-.675.675-.675H15a.675.675 0 0 1 0 1.35H8.333a.675.675 0 0 1-.675-.675Zm0 6c0-.373.302-.675.675-.675H15a.675.675 0 0 1 0 1.35H8.333a.675.675 0 0 1-.675-.675Zm-3.325-.991A.675.675 0 0 1 3.658 9V6.333a.675.675 0 1 1 1.35 0V9a.675.675 0 0 1-.675.675Zm0 5.333a.675.675 0 0 1-.675-.675v-2a.675.675 0 1 1 1.35 0v2a.675.675 0 0 1-.675.675Z" clipRule="evenodd"/><path fillRule="evenodd" d="M4.333 4.342a.658.658 0 1 0 0 1.316.658.658 0 0 0 0-1.316ZM2.325 5a2.008 2.008 0 1 1 4.017 0 2.008 2.008 0 0 1-4.017 0Zm2.008 5.342a.658.658 0 1 0 0 1.316.658.658 0 0 0 0-1.316ZM2.325 11a2.008 2.008 0 1 1 4.017 0 2.008 2.008 0 0 1-4.017 0Z" clipRule="evenodd"/></svg>;
}

const IconSelfBuiltResources = React.forwardRef(IconSelfBuiltResourcesComponent);
export default IconSelfBuiltResources;
