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

export type RedoIconProps = 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 RedoIcon = ({ title, size, color, ...props }: RedoIconProps) => {
  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="m16.527 4.732 4.525 4.524-4.525 4.525-1.06-1.06 2.713-2.715H8.258a3.744 3.744 0 0 0 0 7.487h11.234v1.5H8.258a5.244 5.244 0 0 1 0-10.487h9.922l-2.713-2.713z" clipRule="evenodd" /></svg>
  );
};