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

export const IconShieldOff16 = 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={16}
                height={16}
                fill="none"
                viewBox="0 0 16 16"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <g fill={color}>
                    <path
                        fillRule="evenodd"
                        d="M.722.721a.75.75 0 0 1 1.06 0l13.5 13.5a.754.754 0 0 1 0 1.06.753.753 0 0 1-1.06 0l-1.989-1.988C11.034 14.39 9.73 15.18 8.98 15.59a2.03 2.03 0 0 1-1.955.001c-.815-.447-2.292-1.343-3.573-2.597C2.183 11.75 1.002 10.049 1.002 8v-4.28c0-.455.165-.883.446-1.213l-.726-.726a.75.75 0 0 1 0-1.06m1.805 2.866a.4.4 0 0 0-.025.133v4.281c0 1.456.847 2.792 2 3.921 1.14 1.117 2.483 1.937 3.244 2.354.16.087.35.087.513-.001.69-.379 1.854-1.085 2.913-2.043z"
                        clipRule="evenodd"
                    />
                    <path d="M7.263.214c.478-.165 1-.166 1.478 0l4.75 1.654a2.255 2.255 0 0 1 1.51 2.125V8c0 .469-.061.923-.173 1.356a.755.755 0 0 1-.914.539.75.75 0 0 1-.54-.913A4 4 0 0 0 13.503 8V3.993a.75.75 0 0 0-.504-.708L8.248 1.63a.76.76 0 0 0-.492 0l-1.228.427a.753.753 0 0 1-.955-.462.75.75 0 0 1 .462-.954z" />
                </g>
            </svg>
        );
    }
);
