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

export type TurnIconProps = 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 TurnIcon = ({ title, size, color, ...props }: TurnIconProps) => {
  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="M13.75 12.5V6.81l-3.72 3.72-1.06-1.06 5.53-5.53 5.53 5.53-1.06 1.06-3.72-3.72v5.69A7.25 7.25 0 0 1 8 19.75H4v-1.5h4a5.75 5.75 0 0 0 5.75-5.75" /></svg>
  );
};