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

function IconPublishArealityComponent(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-publish-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 d="m15.174 2.264-9.569 7.768 5.624 2.863c.179.087.394 0 .46-.188L15.275 2.63a.33.33 0 0 0-.1-.367Z" opacity=".6"/><path d="M14.86 2.202.425 6.755a.333.333 0 0 0-.051.615l5.233 2.663h-.002l9.569-7.77a.333.333 0 1 0-.314-.062Z"/><path d="M5.605 10.032v4.087c0 .297.359.445.569.236l2.673-2.673-3.242-1.65Z"/></svg>;
}

const IconPublishAreality = React.forwardRef(IconPublishArealityComponent);
export default IconPublishAreality;
