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

export type GradeIconProps = 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 GradeIcon = ({ title, size, color, ...props }: GradeIconProps) => {
  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="M4.25 16.769V7.924A2.676 2.676 0 0 1 6.924 5.25h4.422v1.5H6.924c-.647 0-1.174.527-1.174 1.174v8.845c0 .646.527 1.173 1.174 1.173h8.845c.646 0 1.173-.527 1.173-1.173v-4.423h1.5v4.423a2.676 2.676 0 0 1-2.673 2.673H6.924A2.676 2.676 0 0 1 4.25 16.77Z" /><path d="m18.73 7.185-6.323 6.328-3.876-3.876 1.06-1.06 2.815 2.814 5.263-5.266z" /></svg>
  );
};