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

export type AddFavouriteIconProps = 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 AddFavouriteIcon = ({ title, size, color, ...props }: AddFavouriteIconProps) => {
  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="M10.973 6.666c-1.484-1.488-3.923-1.55-5.36-.115a3.749 3.749 0 0 0-.002 5.293l6.917 6.798-1.05 1.07-6.925-6.805a5.249 5.249 0 0 1-.001-7.415V5.49c2.058-2.058 5.426-1.913 7.45.084 2.025-1.991 5.392-2.143 7.451-.084a5.249 5.249 0 0 1 0 7.416l-1.061-1.06a3.749 3.749 0 0 0 0-5.295c-1.435-1.436-3.875-1.37-5.36.114l-1.03 1.03-1.03-1.03Zm4.024 8.331v-2.745h1.5v2.745h2.745v1.5h-2.745v2.745h-1.5v-2.745h-2.745v-1.5z" clipRule="evenodd" /></svg>
  );
};