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

export const IconGcpColor16 = 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="#ea4335"
                    d="m10.313 5.376 1.887-1.5-.332-.414a5.94 5.94 0 0 0-5.586-1.217 5.89 5.89 0 0 0-3.978 4.084c-.03.113.312-.098.463-.056l2.608-.428s.127-.124.2-.205c1.16-1.266 3.127-1.432 4.466-.354z"
                />
                <path
                    fill="#4285f4"
                    d="M13.637 6.3a5.84 5.84 0 0 0-1.77-2.838l-1.83 1.819a3.23 3.23 0 0 1 1.193 2.565v.323c.9 0 1.63.725 1.63 1.62 0 .893-.73 1.618-1.63 1.618l-3.257-.002-.325.035v2.507l.325.053h3.257a4.23 4.23 0 0 0 4.079-2.962A4.2 4.2 0 0 0 13.637 6.3"
                />
                <path
                    fill="#34a853"
                    d="M4.711 13.999H7.97v-2.594H4.71c-.232 0-.461-.066-.672-.161l-.458.14-1.313 1.297-.114.447a4.25 4.25 0 0 0 2.557.87"
                />
                <path
                    fill="#fbbc05"
                    d="M4.711 5.572A4.23 4.23 0 0 0 .721 8.44a4.21 4.21 0 0 0 1.433 4.688l1.89-1.884a1.617 1.617 0 0 1 .44-3.079 1.63 1.63 0 0 1 1.714.936l1.89-1.878a4.24 4.24 0 0 0-3.377-1.65"
                />
            </svg>
        );
    }
);
