import { forwardRef, useMemo } from 'react';
import { IconProps } from './types';

export const IconGlobePrivate16 = forwardRef<SVGSVGElement, IconProps>(
    ({ color = 'currentColor', title, ...props }, svgRef) => {
        const titleId = useMemo(
            () =>
                title
                    ? 'title-' + Math.random().toString(36).substr(2, 9)
                    : undefined,
            [title]
        );
        return (
            <svg
                xmlns="http://www.w3.org/2000/svg"
                width={16}
                height={16}
                fill="none"
                viewBox="0 0 16 16"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <g fill={color}>
                    <path
                        fillRule="evenodd"
                        d="M5.58 7C5.835 5.124 6.667 3.335 8 1.836a10.1 10.1 0 0 1 1.806 2.878.75.75 0 1 0 1.388-.568 11.4 11.4 0 0 0-1.322-2.372A6.5 6.5 0 0 1 14.5 8 .75.75 0 0 0 16 8a8 8 0 1 0-11.31 7.285.75.75 0 1 0 .622-1.365A6.5 6.5 0 0 1 1.519 8.5h2.503q.06.845.248 1.668a.75.75 0 1 0 1.462-.336q-.151-.658-.205-1.332H7A.75.75 0 0 0 7 7zM4.07 7H1.576a6.51 6.51 0 0 1 4.552-5.226A11.1 11.1 0 0 0 4.068 7"
                        clipRule="evenodd"
                    />
                    <path d="M11.75 12.25a.75.75 0 0 0-1.5 0v.5a.75.75 0 0 0 1.5 0z" />
                    <path
                        fillRule="evenodd"
                        d="M8.518 9.012c.035-.627.13-1.235.366-1.738.174-.37.435-.704.816-.94C10.08 6.101 10.52 6 11 6s.921.1 1.3.334c.381.236.642.57.816.94.236.503.331 1.111.366 1.738A2.25 2.25 0 0 1 15.5 11.25v2.5A2.25 2.25 0 0 1 13.25 16h-4.5a2.25 2.25 0 0 1-2.25-2.25v-2.5a2.25 2.25 0 0 1 2.018-2.238M10.022 9c.032-.481.102-.838.22-1.087a.66.66 0 0 1 .245-.302c.09-.055.243-.111.513-.111s.423.056.513.111c.087.054.17.141.246.302.117.249.187.606.219 1.087zm3.228 1.5a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1-.75-.75v-2.5a.75.75 0 0 1 .75-.75z"
                        clipRule="evenodd"
                    />
                </g>
            </svg>
        );
    }
);
