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

export const IconShieldOff24 = 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}
                <g fill={color}>
                    <path
                        fillRule="evenodd"
                        d="M1.22 1.22a.75.75 0 0 1 1.06 0l20.5 20.5a.753.753 0 0 1 0 1.06.753.753 0 0 1-1.06 0l-3.913-3.911c-1.629 1.694-3.491 2.916-4.557 3.546a2.45 2.45 0 0 1-2.497.002c-1.087-.643-3-1.9-4.65-3.642C4.463 17.039 3.002 14.732 3 12V5.65c0-.439.148-.854.404-1.186L1.22 2.281a.75.75 0 0 1 0-1.06M4.5 5.65V12c0 2.182 1.173 4.136 2.693 5.744 1.514 1.599 3.295 2.773 4.324 3.38a.95.95 0 0 0 .97-.001c1.018-.603 2.763-1.752 4.26-3.316L4.507 5.57a.5.5 0 0 0-.008.082"
                        clipRule="evenodd"
                    />
                    <path d="M11.04 1.308a2.76 2.76 0 0 1 1.92 0l6.25 2.33A2.755 2.755 0 0 1 21 6.213v5.787c0 .715-.1 1.405-.28 2.061a.754.754 0 0 1-.92.527.75.75 0 0 1-.526-.92A6.4 6.4 0 0 0 19.5 12V6.214c0-.52-.326-.988-.813-1.17l-6.25-2.33a1.26 1.26 0 0 0-.873 0l-2.302.857a.75.75 0 0 1-.965-.44.75.75 0 0 1 .441-.965z" />
                </g>
            </svg>
        );
    }
);
