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

export const IconShieldAlert24 = 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 d="M12.01 15a1 1 0 0 1 0 2H12a1 1 0 0 1 0-2zM12 7a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7" />
                    <path
                        fillRule="evenodd"
                        d="M11.04 1.307c.618-.23 1.3-.23 1.92 0l6.25 2.33A2.75 2.75 0 0 1 21 6.215V12c0 2.732-1.461 5.04-3.104 6.775-1.649 1.744-3.562 2.998-4.649 3.64a2.44 2.44 0 0 1-2.494 0c-1.087-.642-3-1.896-4.65-3.64C4.462 17.04 3 14.732 3 12V6.215a2.75 2.75 0 0 1 1.79-2.578zm1.397 1.407a1.25 1.25 0 0 0-.873 0l-6.25 2.329A1.25 1.25 0 0 0 4.5 6.215V12c0 2.182 1.172 4.136 2.693 5.744 1.514 1.6 3.294 2.773 4.324 3.38.303.18.663.18.966 0 1.03-.607 2.81-1.78 4.324-3.38C18.327 16.136 19.5 14.182 19.5 12V6.215c0-.522-.324-.99-.814-1.172z"
                        clipRule="evenodd"
                    />
                </g>
            </svg>
        );
    }
);
