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

export type NavigationIconProps = 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 NavigationIcon = ({ title, size, color, ...props }: NavigationIconProps) => {
  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="M12.73 14v4.2l2.205-2.2 1.06 1.06-4.015 4.01-4.01-4.01L9.03 16l2.2 2.199v-4.2h1.5ZM8.002 9.065 5.799 11.27H10v1.5H5.8l2.201 2.2-1.062 1.06-4.01-4.01 4.01-4.015 1.062 1.06Zm13.07 2.955-.53.53-3.48 3.48L16 14.97l2.2-2.2H14v-1.5h4.202L16 9.065l1.06-1.06 4.01 4.015Zm-5.04-5.08L14.97 8l-2.2-2.2V10h-1.5V5.798L9.066 8l-1.06-1.062 4.015-4.01 4.01 4.01Z" /></svg>
  );
};