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

function IconModelFileComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-model-file${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'none'} viewBox="0 0 16 16" {...rest} ref={ref}><path fill={useCurrentColor ? 'currentColor' : '#7F88FF'} fillRule="evenodd" d="M3.613 1.5A1.463 1.463 0 0 0 2.15 2.963v10.074A1.463 1.463 0 0 0 3.613 14.5h8.777a1.463 1.463 0 0 0 1.463-1.463V2.963A1.463 1.463 0 0 0 12.39 1.5H3.613Zm7.317 3.12H5.08a.325.325 0 0 0-.322.287l-.003.04v.649c0 .167.126.304.287.323l.039.002h5.851a.325.325 0 0 0 .322-.287l.003-.038v-.65a.326.326 0 0 0-.326-.325Zm-5.85 5.529h1.95c.18 0 .326.145.326.324v.65l-.003.039a.325.325 0 0 1-.322.287H5.08l-.04-.003a.325.325 0 0 1-.286-.322v-.65l.002-.039a.325.325 0 0 1 .323-.286Zm0-2.601h4.876c.18 0 .326.146.326.324v.65l-.003.039a.325.325 0 0 1-.322.287H5.08l-.04-.002a.325.325 0 0 1-.286-.323v-.65l.002-.039a.325.325 0 0 1 .323-.286Z" clipRule="evenodd"/></svg>;
}

const IconModelFile = React.forwardRef(IconModelFileComponent);
export default IconModelFile;
