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

export const IconAmazonEcs24 = 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="m20.369 15.2-2.571-1.996V9.49a.65.65 0 0 0-.311-.554l-3.68-2.254V3.817l6.562 3.84zm.995-8.474-7.88-4.614a.67.67 0 0 0-.664-.006.65.65 0 0 0-.332.566v4.373c0 .226.119.435.311.554l3.68 2.254v3.668c0 .2.094.388.253.512l3.889 3.022a.66.66 0 0 0 .695.073.65.65 0 0 0 .372-.585V7.286a.65.65 0 0 0-.324-.56M11.89 21.634l-8.57-4.317v-9.66L9.859 3.8v2.867l-3.596 2.25a.65.65 0 0 0-.306.552v5.993a.65.65 0 0 0 .366.584l5.2 2.547a.67.67 0 0 0 .592-.003l4.082-2.054 2.742 2.284zm4.822-6.373a.67.67 0 0 0-.724-.082l-4.176 2.1-4.535-2.221V9.826l3.594-2.25a.65.65 0 0 0 .307-.552V2.653a.66.66 0 0 0-.997-.56L2.322 6.726a.65.65 0 0 0-.322.56v10.43c0 .245.138.47.36.58l9.198 4.634a.66.66 0 0 0 .546.023l8.345-3.328a.65.65 0 0 0 .178-1.104z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
