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

export type FacultyIconProps = 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 FacultyIcon = ({ title, size, color, ...props }: FacultyIconProps) => {
  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="M12.2 11.645a2.615 2.615 0 1 0-5.23.001 2.615 2.615 0 0 0 5.23-.002ZM21 3.5v12h-3V14h1.5V5H6.75v1.75h-1.5V3.5zm-7.3 8.145c0 1.27-.577 2.406-1.482 3.16q.399.171.771.39l4.476-4.475 1.06 1.06-4.32 4.32c1.197 1.125 1.965 2.675 1.965 4.4h-1.5c0-2.546-2.338-4.74-5.085-4.74S4.5 17.954 4.5 20.5H3c0-2.553 1.681-4.723 3.951-5.694a4.115 4.115 0 1 1 6.749-3.161" /></svg>
  );
};