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

export type ResearchIconProps = 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 ResearchIcon = ({ title, size, color, ...props }: ResearchIconProps) => {
  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="M13.499 17.994H5.513v.748c0 .964.782 1.746 1.746 1.746h6.75a3.23 3.23 0 0 1-.51-1.746zM12.5 7.25a3.174 3.174 0 1 0-6.348 0 3.174 3.174 0 0 0 6.348 0m2.499 11.493a1.747 1.747 0 0 0 3.492 0V3.516h-4.048v-1.5h5.548v16.726a3.247 3.247 0 0 1-3.246 3.246H7.26a3.247 3.247 0 0 1-3.246-3.246v-2.248H6.51v-3.003h1.5v3.003h6.989L15 18.742ZM14 7.25a4.65 4.65 0 0 1-.883 2.73l2.551 2.552-1.06 1.06-2.55-2.55A4.675 4.675 0 1 1 14 7.25" /></svg>
  );
};