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

export type EyeClosedIconProps = 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 EyeClosedIcon = ({ title, size, color, ...props }: EyeClosedIconProps) => {
  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 9.03a14.4 14.4 0 0 1-4.067 2.872l1.942 1.943-1.06 1.06-2.4-2.4a13.38 13.38 0 0 1-3.445.657v3.403h-1.5v-3.403a13.4 13.4 0 0 1-3.54-.687l-2.43 2.43-1.06-1.06 1.98-1.983A14.41 14.41 0 0 1 2.22 9.03l1.06-1.06c4.952 4.952 12.488 4.952 17.44 0z" /></svg>
  );
};