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

function IconArtifactsShellComponent(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-artifacts-shell${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><path fillRule="evenodd" d="M2.066 4.267a2.2 2.2 0 0 1 2.2-2.2h7.467a2.2 2.2 0 0 1 2.2 2.2v7.466a2.2 2.2 0 0 1-2.2 2.2H4.266a2.2 2.2 0 0 1-2.2-2.2V4.267Zm2.2-1a1 1 0 0 0-1 1v7.466a1 1 0 0 0 1 1h7.467a1 1 0 0 0 1-1V4.267a1 1 0 0 0-1-1H4.266Zm7.067 7.4a.667.667 0 0 1-.667.666h-2a.667.667 0 0 1 0-1.333h2c.369 0 .667.299.667.667ZM5.983 5.35a.667.667 0 0 0-.943.943l1.374 1.374L5.04 9.04a.667.667 0 1 0 .943.942l1.845-1.845a.667.667 0 0 0 0-.943L5.983 5.35Z" clipRule="evenodd"/></svg>;
}

const IconArtifactsShell = React.forwardRef(IconArtifactsShellComponent);
export default IconArtifactsShell;
