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.484 7.495v8.74h-7.24A3.744 3.744 0 0 0 3.5 19.976H2V7.495zM3.5 16.308a5.227 5.227 0 0 1 3.743-1.574h5.741V8.995H3.5zM21.973 4v12.233h-1.5a3.743 3.743 0 0 0-3.743-3.743h-.999v-1.5h.999c1.466 0 2.791.602 3.743 1.572V5.5h-9.484v.748h-1.5V4z" /></svg>
  );
};