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

export type StaffIconProps = 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 StaffIcon = ({ title, size, color, ...props }: StaffIconProps) => {
  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="M22 4.5v15H2v-15zM3.5 18h17V6h-17zm7.205-7.25a2 2 0 1 0-2.204 1.99l.204.01.204-.01a2 2 0 0 0 1.796-1.99m8.295 3v1.5h-4v-1.5zm0-2.5v1.5h-5.25v-1.5zm0-2.5v1.5h-5.25v-1.5zm-6.795 2a3.49 3.49 0 0 1-1.228 2.661c1.136.71 1.928 1.928 1.928 3.339h-1.5c0-1.316-1.228-2.5-2.705-2.5s-2.705 1.184-2.705 2.5h-1.5c0-1.413.794-2.633 1.933-3.343a3.5 3.5 0 1 1 5.777-2.657" /></svg>
  );
};