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

export const IconGcp24 = 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}
                    fillRule="evenodd"
                    d="m17.157 5.95.004.004a7.8 7.8 0 0 1 2.355 3.78 5.6 5.6 0 0 1 2.23 6.317A5.645 5.645 0 0 1 16.306 20l-8.692-.002c-1.227.005-2.427-.429-3.408-1.163l-.002.003a5.61 5.61 0 0 1-1.91-6.252 5.6 5.6 0 0 1 2.108-2.804l.003-.01a7.85 7.85 0 0 1 5.303-5.446 7.91 7.91 0 0 1 7.448 1.624m1.322 8.434a2.165 2.165 0 0 1-2.172 2.16l-8.692-.004s-.428 0-.915-.226a2.16 2.16 0 0 1-1.231-2.26 2.165 2.165 0 0 1 1.843-1.834 2.17 2.17 0 0 1 2.285 1.249l2.52-2.505a5.65 5.65 0 0 0-3.367-2.09l.018-.02c1.547-1.689 4.168-1.91 5.954-.473l.002.001a4.3 4.3 0 0 1 1.583 3.413v.43c1.2 0 2.172.967 2.172 2.16"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
