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

export type ChatDialogueIconProps = 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 ChatDialogueIcon = ({ title, size, color, ...props }: ChatDialogueIconProps) => {
  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="M14.755 9.215v7.257H8.258a3.744 3.744 0 0 0-3.743 3.743h-1.5v-11zm-10.24 7.33a5.227 5.227 0 0 1 3.743-1.573h4.997v-4.257h-8.74zm14.97-9.789h-9.223v1.487h-1.5V5.256h12.223v11.215h-1.5a3.731 3.731 0 0 0-3.728-3.728v-1.5c1.46 0 2.78.6 3.728 1.565z" /></svg>
  );
};