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

function IconCreateFile2Component(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-CreateFile2${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 12 12" {...rest} ref={ref}><g clipPath="url(#svg_e6dcd06e33__svg_e6dcd06e33__a)"><path fillRule="evenodd" d="m8.25.5 2.25 2.357V6h-1V3.51h-2V1.5h-5v9H6v1H2a.5.5 0 0 1-.5-.5V1A.5.5 0 0 1 2 .5h6.25Zm1 6.5a.25.25 0 0 1 .25.25V8.5h1.25a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25H9.5v1.25a.25.25 0 0 1-.25.25h-.5a.25.25 0 0 1-.25-.25V9.5H7.25A.25.25 0 0 1 7 9.25v-.5a.25.25 0 0 1 .25-.25H8.5V7.25A.25.25 0 0 1 8.75 7h.5Z" clipRule="evenodd"/></g><defs><clipPath id="svg_e6dcd06e33__svg_e6dcd06e33__a"><path d="M0 0h12v12H0z"/></clipPath></defs></svg>;
}

const IconCreateFile2 = React.forwardRef(IconCreateFile2Component);
export default IconCreateFile2;
