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

function IconAgentFileSettingsComponent(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-agent-file-settings${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 17 16" {...rest} ref={ref}><path fillRule="evenodd" d="M4.767 1.4a2.2 2.2 0 0 0-2.2 2.2v8.8a2.2 2.2 0 0 0 2.2 2.2h7.466a2.2 2.2 0 0 0 2.2-2.2V3.6a2.2 2.2 0 0 0-2.2-2.2H4.767Zm-.199 1.22a1 1 0 0 0-.801.98v8.8a1 1 0 0 0 .801.98.61.61 0 0 1-.001-.047V2.667l.001-.047ZM5.763 13.4h6.47a1 1 0 0 0 1-1V3.6a1 1 0 0 0-1-1h-6.47a.607.607 0 0 1 .004.067v10.666a.606.606 0 0 1-.004.067Zm1.503-8.067c0-.313.254-.567.567-.567h3.334a.568.568 0 1 1 0 1.135H7.833a.568.568 0 0 1-.567-.568Zm.567 1.433a.568.568 0 0 0 0 1.135h2a.568.568 0 1 0 0-1.135h-2Z" clipRule="evenodd"/><path d="M7.266 5.333c0-.313.254-.567.567-.567h3.334a.568.568 0 1 1 0 1.135H7.833a.568.568 0 0 1-.567-.568Zm.567 1.433a.568.568 0 0 0 0 1.135h2a.568.568 0 1 0 0-1.135h-2Z"/></svg>;
}

const IconAgentFileSettings = React.forwardRef(IconAgentFileSettingsComponent);
export default IconAgentFileSettings;
