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

function IconFullscreenExitComponent(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-fullscreen-exit${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 48 48" {...rest} ref={ref}><path d="M44 31v4h-7v7h-4v-8a3 3 0 0 1 3-3h8ZM37 6v7h7v4h-8a3 3 0 0 1-3-3V6h4ZM15 42h-4v-7H4v-4h8a3 3 0 0 1 3 3v8Zm0-28a3 3 0 0 1-3 3H4v-4h7V6h4v8Z"/></svg>;
}

const IconFullscreenExit = React.forwardRef(IconFullscreenExitComponent);
export default IconFullscreenExit;
