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

export type ItslearningIconProps = 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 ItslearningIcon = ({ title, size, color, ...props }: ItslearningIconProps) => {
  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 fillRule="evenodd" d="M4 9.174 4.003 9c0 .038-.003.077-.003.116zm0 0L4.003 9z" clipRule="evenodd" /><path d="M5.477 9.174A3.694 3.694 0 0 1 9.17 5.478h9.354v10.348a3.694 3.694 0 0 1-3.693 3.696H9.17a3.694 3.694 0 0 1-3.693-3.696zM20 4H9.17A5.172 5.172 0 0 0 4 9.174v6.652A5.172 5.172 0 0 0 9.17 21h5.661a5.172 5.172 0 0 0 5.17-5.174V4Z" /></svg>
  );
};