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

function IconArtifactsBrowseComponent(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-browse${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 14 14" {...rest} ref={ref}><path fillRule="evenodd" d="M1.225 7a5.775 5.775 0 1 1 11.55 0 5.775 5.775 0 0 1-11.55 0ZM7 2.275a4.725 4.725 0 1 0 0 9.45 4.725 4.725 0 0 0 0-9.45Z" clipRule="evenodd"/><path fillRule="evenodd" d="M9.227 4.773a.525.525 0 0 1 .123.549l-.983 2.73a.525.525 0 0 1-.316.315l-2.73.983a.525.525 0 0 1-.671-.672l.982-2.73a.525.525 0 0 1 .316-.316l2.73-.982a.525.525 0 0 1 .55.123Zm-2.69 1.764-.522 1.447 1.448-.52.521-1.448-1.447.52Z" clipRule="evenodd"/></svg>;
}

const IconArtifactsBrowse = React.forwardRef(IconArtifactsBrowseComponent);
export default IconArtifactsBrowse;
