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

export type FavouriteFilledIconProps = 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 FavouriteFilledIcon = ({ title, size, color, ...props }: FavouriteFilledIconProps) => {
  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="M15.822 4.763c-1.204 0-2.417.47-3.326 1.373l-.499.5-.5-.5a4.72 4.72 0 0 0-3.324-1.373c-1.129 0-2.247.41-3.1 1.258a4.499 4.499 0 0 0 0 6.356l6.92 6.8 6.919-6.8a4.499 4.499 0 0 0 0-6.356c-.849-.849-1.967-1.258-3.1-1.258z" /></svg>
  );
};