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

export type StopwatchIconProps = 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 StopwatchIcon = ({ title, size, color, ...props }: StopwatchIconProps) => {
  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="M14.25 4.265H9.505v-1.5h4.743v1.5Zm-2.248 2.247a6.989 6.989 0 1 0 0 13.977 6.989 6.989 0 0 0 0-13.977M3.514 13.5a8.489 8.489 0 0 1 13.934-6.51l1.493-1.493 1.06 1.06L18.51 8.05A8.489 8.489 0 1 1 3.513 13.5Zm9.238-.37V9.506h-1.5v4.245l3.216 3.215 1.06-1.06z" clipRule="evenodd" /></svg>
  );
};