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

export type LocationIconProps = 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 LocationIcon = ({ title, size, color, ...props }: LocationIconProps) => {
  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="M12.003 11.004a.999.999 0 1 0 0-1.997.999.999 0 0 0 0 1.997" /><path fillRule="evenodd" d="M12.003 4.514a5.493 5.493 0 0 0-5.491 5.491c0 .753.322 1.714.889 2.79.557 1.06 1.31 2.154 2.076 3.15a40.6 40.6 0 0 0 2.526 2.963 40.7 40.7 0 0 0 2.526-2.963c.766-.996 1.518-2.09 2.076-3.15.566-1.076.889-2.037.889-2.79 0-3.03-2.46-5.49-5.491-5.49Zm0 15.477-.53.53-.003-.002-.004-.004-.014-.015-.055-.055a41 41 0 0 1-.925-.983 42 42 0 0 1-2.184-2.602c-.794-1.033-1.602-2.202-2.215-3.365-.603-1.147-1.061-2.37-1.061-3.49a6.992 6.992 0 0 1 13.982 0c0 1.12-.458 2.343-1.062 3.49-.612 1.163-1.42 2.332-2.214 3.365a42.1 42.1 0 0 1-3.11 3.585l-.055.055-.014.015-.005.005s-.001.001-.531-.53Zm0 0 .53.53-.53.53-.53-.53zm0-10.234a.249.249 0 1 0 0 .497.249.249 0 0 0 0-.497m-1.749.248a1.749 1.749 0 1 1 3.497 0 1.749 1.749 0 0 1-3.497 0" clipRule="evenodd" /></svg>
  );
};