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

export type FavouriteIconProps = 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 FavouriteIcon = ({ title, size, color, ...props }: FavouriteIconProps) => {
  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.972 6.666C9.49 5.178 7.05 5.116 5.614 6.55a3.749 3.749 0 0 0-.003 5.293l6.392 6.282 6.391-6.281a3.749 3.749 0 0 0-.002-5.293c-1.435-1.436-3.875-1.37-5.36.114l-1.03 1.03-1.03-1.03Zm1.03-1.091C9.979 3.578 6.61 3.433 4.553 5.49a5.249 5.249 0 0 0 0 7.416l7.45 7.322 7.446-7.317.006-.005a5.249 5.249 0 0 0-.001-7.416c-2.059-2.06-5.426-1.907-7.45.084Z" clipRule="evenodd" /></svg>
  );
};