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

export type ProgressionIconProps = 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 ProgressionIcon = ({ title, size, color, ...props }: ProgressionIconProps) => {
  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="M12.003 4.514a7.487 7.487 0 0 0-7.488 7.488 7.49 7.49 0 0 0 7.488 7.488 7.49 7.49 0 0 0 7.488-7.488h1.5a8.99 8.99 0 0 1-8.988 8.988 8.99 8.99 0 0 1-8.988-8.988 8.987 8.987 0 0 1 8.988-8.988z" clipRule="evenodd" /></svg>
  );
};