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="M20.747 12.15 12.56 4.23a.813.813 0 0 0-1.136 0l-8.187 7.92a.735.735 0 0 0-.173.842c.126.291.41.475.741.475h2.43l.14 5.752c0 .429.362.781.804.781H17.1a.797.797 0 0 0 .805-.781l-.14-5.752h2.429a.81.81 0 0 0 .741-.475.735.735 0 0 0-.173-.842h-.016Zm-13.708-.215h-1.31l6.263-6.066 6.263 6.066h-1.31c-.441 0-.804.353-.804.766l.14 5.752H7.968l-.14-5.752c0-.429-.363-.766-.805-.766z" /></svg>
  );
};