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

export type PasswordShowIconProps = 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 PasswordShowIcon = ({ title, size, color, ...props }: PasswordShowIconProps) => {
  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 13.531c-5.53 5.53-14.003 5.53-19.534 0l1.06-1.06c4.945 4.944 12.469 4.944 17.413 0l1.06 1.06Zm-9.767-4.774a3.246 3.246 0 1 1 0 6.491 3.246 3.246 0 0 1 0-6.491m-9.767 1.717c5.53-5.53 14.003-5.53 19.534 0l-1.061 1.06c-4.944-4.944-12.468-4.944-17.412 0l-1.06-1.06Z" /></svg>
  );
};