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

export const IconAwsEc2Color24 = 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="#9d5025"
                    d="M3.003 4.47 2 4.967v14.064l1.003.499 4.06-7.167z"
                />
                <path
                    fill="#f58536"
                    d="m5.341 18.985-2.338.546V4.469L5.341 5z"
                />
                <path
                    fill="#9d5025"
                    d="M4.11 3.918 5.34 3.31l5.852 9.324-5.852 8.058-1.232-.61z"
                />
                <path
                    fill="#f58536"
                    d="m8.257 19.872-2.916.819V3.309l2.916.822z"
                />
                <path
                    fill="#9d5025"
                    d="m6.714 2.624 1.543-.767 8.633 11.796-8.633 8.49-1.543-.767z"
                />
                <path
                    fill="#f58536"
                    d="m11.997 20.784-3.74 1.359V1.857l3.74 1.362z"
                />
                <path
                    fill="#9d5025"
                    d="M10.002.991 11.997 0l9.34 12.68L11.997 24l-1.995-.991z"
                />
                <path fill="#f58536" d="M22 19.03 11.997 24V0L22 4.97z" />
            </svg>
        );
    }
);
