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

export const IconAwsS3Color24 = 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 fillRule="evenodd" clipRule="evenodd">
                    <path
                        fill="#e25444"
                        d="m18.897 5.254-3.49 6.789 3.49 6.789 1.43-.816V6.07z"
                    />
                    <path
                        fill="#7b1d13"
                        d="m18.897 5.254-6.981.816-3.554 5.973 3.554 5.973 6.981.816z"
                    />
                    <path
                        fill="#58150d"
                        d="m4.808 5.254-1.135.516v12.546l1.135.516 7.108-6.789z"
                    />
                    <path
                        fill="#e25444"
                        d="m4.793 5.24 7.132 2.024v9.74l-7.132 1.833z"
                    />
                    <path
                        fill="#58150d"
                        d="m11.929 8.333-3.028-.496 3.028-3.514 3.02 3.514z"
                    />
                    <path
                        fill="#58150d"
                        d="m14.95 7.837-3.025.504-3.024-.504V4.323M11.929 15.705l-3.028.573 3.028 3.017 3.02-3.017z"
                    />
                    <path
                        fill="#7b1d13"
                        d="M11.916 1.688 8.888 3.32v4.512l3.037-.874zM11.925 9.441l-3.024.336v4.505l3.024.353zM11.925 17.042l-3.024-.775v4.428l3.024 1.617z"
                    />
                    <path
                        fill="#e25444"
                        d="m14.95 16.267-3.025.775v5.27l3.025-1.617zM11.925 9.441l3.025.336v4.505l-3.025.353zM11.916 1.688l3.028 1.632v4.512l-3.028-.86z"
                    />
                </g>
            </svg>
        );
    }
);
