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

export type ThumbDownIconProps = 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 ThumbDownIcon = ({ title, size, color, ...props }: ThumbDownIconProps) => {
  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="M4.764 10.425v2.83h7.489v4.134l.01.215a2.1 2.1 0 0 0 2.09 1.886v1.5a3.598 3.598 0 0 1-3.597-3.496h-.003v-2.74h-7.49v-4.33h1.5Zm15.727-7.41v11.74H16.75l.002 6.235h-2.393v-1.5h.893l-.005-14.976h-4.572A5.907 5.907 0 0 0 4.77 10.42h-1.5a7.407 7.407 0 0 1 7.405-7.406h9.817Zm-3.742 10.24h2.242v-8.74h-2.245z" /></svg>
  );
};