import { forwardRef, useMemo } from 'react';
import { IconProps } from './types';

export const IconEyeOff24 = forwardRef<SVGSVGElement, IconProps>(
    ({ color = 'currentColor', title, ...props }, svgRef) => {
        const titleId = useMemo(
            () =>
                title
                    ? 'title-' + Math.random().toString(36).substr(2, 9)
                    : undefined,
            [title]
        );
        return (
            <svg
                xmlns="http://www.w3.org/2000/svg"
                width={24}
                height={24}
                fill="none"
                viewBox="0 0 24 24"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    fillRule="evenodd"
                    d="M1.22 1.22a.75.75 0 0 1 1.06 0l20.5 20.5a.75.75 0 0 1-1.06 1.06l-3.64-3.64C16.4 20.22 14.36 21 12 21c-3.864 0-6.86-2.087-8.85-4.162-1-1.042-1.767-2.1-2.286-2.936-.259-.417-.46-.785-.6-1.074a5 5 0 0 1-.17-.388 2 2 0 0 1-.057-.177A1 1 0 0 1 0 12c0-.142.038-.268.055-.321a3 3 0 0 1 .086-.234c.066-.16.16-.355.276-.574.234-.44.575-1.008 1.02-1.635.767-1.082 1.857-2.367 3.25-3.488L1.22 2.28a.75.75 0 0 1 0-1.06m4.535 5.596C4.436 7.851 3.394 9.068 2.66 10.104c-.409.576-.716 1.09-.918 1.47a6 6 0 0 0-.208.426q.03.072.081.177c.113.233.287.554.523.933A16.7 16.7 0 0 0 4.23 15.8C6.075 17.72 8.706 19.5 12 19.5c1.89 0 3.56-.585 4.991-1.448l-2.74-2.74A3.98 3.98 0 0 1 12 16a4 4 0 0 1-4-4c0-.834.25-1.609.688-2.251zM12 3c3.864 0 6.86 2.087 8.85 4.162 1 1.042 1.767 2.1 2.286 2.936.259.417.46.785.6 1.074q.104.216.17.389.03.085.057.176c.013.048.037.147.037.263 0 .171-.057.332-.08.396q-.052.147-.134.326c-.109.236-.265.535-.465.875-.4.68-.99 1.55-1.759 2.454a.75.75 0 0 1-1.142-.973 16 16 0 0 0 1.608-2.242 9 9 0 0 0 .438-.836 4 4 0 0 0-.081-.177 10 10 0 0 0-.523-.934A16.7 16.7 0 0 0 19.77 8.2C17.925 6.28 15.295 4.5 12 4.5c-.813 0-1.583.108-2.31.299a.751.751 0 0 1-.38-1.451A10.6 10.6 0 0 1 12 3m-2.22 7.84c-.18.345-.28.738-.28 1.16a2.5 2.5 0 0 0 2.5 2.5c.422 0 .815-.1 1.16-.28z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
