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

function IconEditArealityComponent(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-edit-areality${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 14 14" {...rest} ref={ref}><path fillRule="evenodd" d="m7.75 4.232 2.333 2.333-6.19 6.19-1.868.206a.652.652 0 0 1-.65-.603l-.002-.049.206-1.868 6.171-6.21Zm3.23-2.414.043.039 1.414 1.426a.652.652 0 0 1 0 .92l-.238.246-1.194 1.194L8.67 3.306l.97-.99.46-.46a.652.652 0 0 1 .881-.038Z" clipRule="evenodd"/></svg>;
}

const IconEditAreality = React.forwardRef(IconEditArealityComponent);
export default IconEditAreality;
