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

export const IconShieldX24 = 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="M11.04 1.307c.62-.23 1.302-.23 1.92 0l6.25 2.33A2.75 2.75 0 0 1 21 6.215V12c0 2.732-1.462 5.038-3.104 6.774-1.649 1.744-3.562 3-4.649 3.642a2.44 2.44 0 0 1-2.494 0c-1.088-.643-3-1.898-4.65-3.642C4.463 17.038 3 14.732 3 12V6.215c0-1.149.714-2.176 1.79-2.578zm1.397 1.407a1.25 1.25 0 0 0-.873 0l-6.25 2.329c-.49.182-.814.65-.814 1.172V12c0 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.172zM14.72 7.22a.75.75 0 0 1 1.06 1.061l-2.72 2.72 2.72 2.72a.75.75 0 0 1-1.06 1.06L12 12.061l-2.72 2.72a.75.75 0 0 1-1.06-1.06L10.94 11 8.22 8.28a.75.75 0 0 1 1.06-1.06L12 9.938z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
