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

export type InfohubEmployeeIconProps = 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 InfohubEmployeeIcon = ({ title, size, color, ...props }: InfohubEmployeeIconProps) => {
  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="M11.984 5.75a5.845 5.845 0 0 1 5.845 5.805H19a7.056 7.056 0 0 0-14.11 0h-1.5a8.556 8.556 0 0 1 17.11 0v1.5h-2.855a5.853 5.853 0 0 1-2.577 3.504c1.921.79 3.498 2.283 4.305 4.142l-1.376.598c-.97-2.233-3.363-3.854-6.013-3.854S6.942 19.066 5.973 21.3l-1.376-.6c.807-1.858 2.382-3.353 4.302-4.142A5.845 5.845 0 0 1 11.984 5.75M7.64 11.595a4.346 4.346 0 0 0 8.438 1.46H12v-1.5h4.33a4.345 4.345 0 0 0-8.69.04" /></svg>
  );
};