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

export type KeystrokeShiftIconProps = 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 KeystrokeShiftIcon = ({ title, size, color, ...props }: KeystrokeShiftIconProps) => {
  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="M15.746 12.001h1.804L12.003 5.88l-5.547 6.122H8.26v6.74H14c.964 0 1.746-.782 1.746-1.746v-4.994Zm1.5 4.994A3.247 3.247 0 0 1 14 20.241H6.76v-6.74H3.072l8.93-9.855 8.933 9.855h-3.689z" /></svg>
  );
};