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

export const IconAwsLambda16 = 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={16}
                height={16}
                fill="none"
                viewBox="0 0 16 16"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    d="M7.983 8.37c-.053.073-.098.133-.141.194L5.775 11.5q-.96 1.365-1.924 2.73a.13.13 0 0 1-.092.051q-1.36-.011-2.719-.028c-.01 0-.02-.003-.04-.006l.025-.053 5.446-8.146c.092-.138.188-.273.275-.413a.17.17 0 0 0 .018-.124q-.252-.773-.508-1.543c-.073-.22-.15-.44-.218-.66-.022-.072-.059-.094-.134-.093q-.854.002-1.704.001c-.108 0-.108 0-.108-.103q0-1.01-.002-2.021c0-.075.026-.092.099-.092q1.714.003 3.43 0a.1.1 0 0 1 .076.017.1.1 0 0 1 .045.061l3.92 9.51q.329.794.654 1.59c.026.064.053.076.12.056.6-.178 1.2-.352 1.8-.531.075-.023.102-.008.126.064q.307.93.62 1.858l.02.073c-.043.015-.083.032-.124.043l-4.085 1.25c-.065.02-.085 0-.106-.054l-1.25-3.048-1.226-2.984-.183-.449c-.01-.026-.023-.048-.043-.087"
                />
            </svg>
        );
    }
);
