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

export type GlobeIconProps = 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 GlobeIcon = ({ title, size, color, ...props }: GlobeIconProps) => {
  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 d="M8.83 4.334 7.77 5.395l-.618-.618a7.297 7.297 0 0 0 .503 9.758 7.296 7.296 0 0 0 9.756.503l-.617-.618 1.06-1.06 1.707 1.705-.53.53a8.756 8.756 0 0 1-5.53 2.545v2.36h3V22H9v-1.5h3v-2.37a8.756 8.756 0 0 1-5.407-2.536 8.796 8.796 0 0 1 0-12.435l.531-.53L8.83 4.333Zm8.105 5.04a4.125 4.125 0 1 0-8.251.001 4.125 4.125 0 0 0 8.25 0Zm1.5 0a5.625 5.625 0 1 1-11.25 0 5.625 5.625 0 0 1 11.25 0" /></svg>
  );
};