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

export type DocumentProgressIconProps = 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 DocumentProgressIcon = ({ title, size, color, ...props }: DocumentProgressIconProps) => {
  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.762 2.016h9.298l5.183 5.182v14.79H13.75v-1.5h3.993V10.257h-3.244a3.247 3.247 0 0 1-3.247-3.246V3.516h-4.99v8.486h-1.5zm7.99 1.5V7.01c0 .963.783 1.746 1.746 1.746h3.245V7.82l-4.304-4.304zm-4.14 10.77a3.1 3.1 0 1 0 0 6.198 3.1 3.1 0 0 0 0-6.199Zm-4.6 3.099a4.6 4.6 0 1 1 9.2 0 4.6 4.6 0 0 1-9.2 0m3.85-.431v-1.317h1.5v1.317a.86.86 0 0 1 .086.206l1.443 1.447-1.063 1.06-1.443-1.448a.865.865 0 0 1-.523-1.265" clipRule="evenodd" /></svg>
  );
};