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

function IconCopyArealityComponent(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-copy-areality${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><path fillRule="evenodd" d="M3.5 2A1.5 1.5 0 0 0 2 3.5V10a1.5 1.5 0 0 0 1.5 1.5H10a1.5 1.5 0 0 0 1.5-1.5V3.5A1.5 1.5 0 0 0 10 2H3.5Zm4 12a2 2 0 0 1-1.908-1.4H10.8a1.8 1.8 0 0 0 1.8-1.8V5.592A2 2 0 0 1 14 7.5V12a2 2 0 0 1-2 2H7.5Z" clipRule="evenodd"/></svg>;
}

const IconCopyAreality = React.forwardRef(IconCopyArealityComponent);
export default IconCopyAreality;
