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

export type ThumbUpIconProps = 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 ThumbUpIcon = ({ title, size, color, ...props }: ThumbUpIconProps) => {
  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="M9.396 3.014v1.5h-.893l.005 14.976h4.572a5.907 5.907 0 0 0 5.905-5.905h1.5a7.407 7.407 0 0 1-7.405 7.405H3.264V9.25h3.74l-.001-6.236zM4.764 19.49h2.244l-.003-8.74H4.764zM9.4 3.014A3.6 3.6 0 0 1 13 6.511h.003v2.74h7.49v4.329h-1.5v-2.83h-7.49V6.616l-.01-.215A2.1 2.1 0 0 0 9.4 4.514z" /></svg>
  );
};