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

export const IconAwsLambda24 = 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}
                    d="M12.048 12.523c-.075.104-.139.19-.2.277l-2.912 4.19c-.903 1.3-1.807 2.598-2.712 3.895a.182.182 0 01-.129.073 872.9 872.9 0 01-3.831-.04c-.014 0-.029-.004-.057-.009a.664.664 0 01.036-.076l2.673-4.048 2.372-3.587 2.63-3.986c.129-.196.263-.389.386-.588a.238.238 0 00.026-.177c-.236-.735-.476-1.469-.717-2.202-.103-.315-.21-.627-.307-.943-.03-.101-.082-.132-.188-.132-.803.003-1.6.003-2.4.003-.153 0-.153 0-.153-.147 0-.962 0-1.923-.003-2.884 0-.107.036-.131.139-.131 1.61.002 3.222.002 4.834 0a.158.158 0 01.106.024c.031.021.054.052.064.088l2.549 6.263 2.974 7.303c.308.755.618 1.51.922 2.268.037.092.075.11.17.081.844-.255 1.69-.503 2.535-.759.106-.032.145-.01.178.093.288.884.581 1.766.873 2.65.01.03.018.061.03.104-.06.021-.117.046-.176.061l-5.756 1.785c-.091.028-.119-.002-.15-.078-.585-1.45-1.172-2.9-1.76-4.349l-1.728-4.257c-.087-.213-.172-.427-.258-.64-.014-.037-.033-.069-.06-.125z"
                />
            </svg>
        );
    }
);
