import { useId, type SVGProps } from 'react';

export type WorldIconProps = SVGProps<SVGSVGElement> & {
  /** Accessibility title for the icon, set aria-hidden="true" if the icon is purely decorative. */
  title?: string;
  /**
   * The size of the icon.
   * It sets the font-size, possible as the width and height is `1em`. If not set, the icon will inherit the font size of its parent.
   */
  size?: '2xl' | 'xl' | 'large' | 'medium' | 'small';
  /**
   * The color of the icon.
   * @default 'inherit'
   */
  color?: 'inherit' | 'primary' | 'gray' | 'black' | 'white';
};

export const WorldIcon = ({ title, size, color, ...props }: WorldIconProps) => {
  const titleId = useId();
  return (
    <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" focusable='false' role='img' width='1em' height='1em'  aria-labelledby={title ? titleId : undefined} data-size={size} data-color={color} {...props}>{title ? <title id={titleId}>{title}</title> : null}<path fillRule="evenodd" d="M4.813 9.85A7.5 7.5 0 0 0 4.5 12c0 .75.11 1.473.314 2.155h2.418A16.8 16.8 0 0 1 7.095 12c0-.739.047-1.46.136-2.15zm.634-1.5H7.5c.22-.933.52-1.786.891-2.521a8.2 8.2 0 0 1 .315-.57 7.533 7.533 0 0 0-3.26 3.091ZM12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18m0 1.5c-.713 0-1.557.593-2.268 2.004a9.6 9.6 0 0 0-.685 1.846h5.906a9.6 9.6 0 0 0-.685-1.846C13.558 5.093 12.713 4.5 12 4.5m4.499 3.85a11.44 11.44 0 0 0-.891-2.521 8 8 0 0 0-.316-.57 7.533 7.533 0 0 1 3.261 3.091H16.5Zm-1.244 1.5h-6.51c-.097.68-.15 1.4-.15 2.15 0 .752.053 1.475.15 2.155h6.51c.097-.68.15-1.403.15-2.155 0-.75-.053-1.47-.15-2.15m1.513 4.305c.09-.692.137-1.415.137-2.155 0-.739-.047-1.46-.136-2.15h2.418c.204.681.313 1.403.313 2.15a7.5 7.5 0 0 1-.314 2.155zm-1.817 1.5H9.049c.183.688.415 1.308.684 1.841.71 1.412 1.555 2.004 2.268 2.004s1.557-.593 2.268-2.004a9.6 9.6 0 0 0 .683-1.841Zm.341 3.086a8.5 8.5 0 0 0 .316-.57c.37-.734.67-1.585.89-2.516h2.053a7.533 7.533 0 0 1-3.258 3.086Zm-6.585 0a8 8 0 0 1-.315-.57 11.43 11.43 0 0 1-.89-2.516H5.45a7.533 7.533 0 0 0 3.258 3.086Z" clipRule="evenodd" /></svg>
  );
};