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

export type EyeOpenIconProps = 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 EyeOpenIcon = ({ title, size, color, ...props }: EyeOpenIconProps) => {
  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.77 14.06c-5.53 5.53-14.003 5.53-19.534 0L3.296 13c4.945 4.944 12.469 4.944 17.413 0l1.06 1.06ZM2.236 9.94c5.53-5.53 14.003-5.53 19.534 0L20.709 11C15.765 6.056 8.241 6.056 3.297 11l-1.06-1.06Z" /><path d="M12.028 8.762a3.235 3.235 0 1 1 0 6.47 3.242 3.242 0 0 1-3.24-3.234 3.236 3.236 0 0 1 3.24-3.236" /></svg>
  );
};