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

export type PushpinFillIconProps = 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 PushpinFillIcon = ({ title, size, color, ...props }: PushpinFillIconProps) => {
  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="m21.042 9.202-.554-.485-5.043-5.082-.46-.525-.56.49c-2.404 2.113-4.804 4.226-7.21 6.339-.128-.129-.257-.252-.385-.381l-.53-.52-1.044 1.06.53.519.86.846.476.54.04-.035c.672.663 1.345 1.331 2.018 1.994l-4.76 4.864 1.059 1.04 4.755-4.86c.663.658 1.332 1.311 1.995 1.97l-.03.03.534.47c.287.287.58.569.866.855l.53.52 1.044-1.054-.53-.52c-.128-.123-.252-.252-.38-.376l3.889-4.424 2.885-3.28z" /></svg>
  );
};