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

function IconHFileFilledComponent(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 || 'font';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-H-File-filled${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 24 24" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M2.3999 7.20005C2.3999 5.87457 3.47442 4.80005 4.7999 4.80005H10.7999L13.1999 7.20005H19.1999C20.5254 7.20005 21.5999 8.27457 21.5999 9.60005V16.8C21.5999 18.1255 20.5254 19.2 19.1999 19.2H4.7999C3.47442 19.2 2.3999 18.1255 2.3999 16.8V7.20005Z"/></svg>;
}

const IconHFileFilled = React.forwardRef(IconHFileFilledComponent);
export default IconHFileFilled;
