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.78 14.06c-5.538 5.538-14.022 5.538-19.56 0L3.28 13c4.952 4.952 12.488 4.952 17.44 0zM13.75 12a1.75 1.75 0 1 0-3.5 0 1.75 1.75 0 0 0 3.5 0M2.22 9.94c5.538-5.538 14.022-5.538 19.56 0L20.72 11C15.768 6.048 8.232 6.048 3.28 11zM15.25 12a3.25 3.25 0 1 1-6.5 0 3.25 3.25 0 0 1 6.5 0" /></svg>
  );
};