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

function IconModelGalleryComponent(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-model_gallery${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 20 20" {...rest} ref={ref}><path d="M5.861 16.573h8.3v1.905c0 .51-.413.922-.922.922H6.783a.922.922 0 0 1-.922-.922v-1.905Z" opacity=".5"/><path fillRule="evenodd" d="M17.281 7.87a7.262 7.262 0 0 1-3.12 5.971v2.732h-8.3v-2.732a7.27 7.27 0 1 1 11.42-5.97Zm-5.44 2.64h-.78v6.063H9.215V10.51h-.78a.461.461 0 0 1-.461-.461v-.922a.46.46 0 0 1 .46-.461h3.405c.255 0 .462.206.462.46v.923a.461.461 0 0 1-.462.461Z" clipRule="evenodd"/></svg>;
}

const IconModelGallery = React.forwardRef(IconModelGalleryComponent);
export default IconModelGallery;
