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

export type PasswordHideIconProps = 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 PasswordHideIcon = ({ title, size, color, ...props }: PasswordHideIconProps) => {
  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="M21.769 9.038a14.38 14.38 0 0 1-4.06 2.867l1.939 1.939-1.061 1.06-2.396-2.395c-1.122.371-2.278.59-3.439.655v3.397h-1.5v-3.398a13.38 13.38 0 0 1-3.532-.686l-2.427 2.427-1.06-1.06 1.977-1.979a14.39 14.39 0 0 1-3.975-2.827l1.06-1.06c4.945 4.944 12.469 4.944 17.413 0l1.06 1.06Z" /></svg>
  );
};