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

export const IconGitlabColor24 = 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="#fc6d26"
                    d="M21.964 13.292 18.626 3.256a.38.38 0 0 0-.363-.255.38.38 0 0 0-.364.255l-2.217 6.669H8.316L6.1 3.256A.38.38 0 0 0 5.736 3a.38.38 0 0 0-.363.256L2.039 13.292a.74.74 0 0 0 .276.833L12 21l9.683-6.875a.74.74 0 0 0 .28-.833"
                />
                <path fill="#e24329" d="m12 20.995 3.682-11.07-7.363-.001z" />
                <path fill="#fc6d26" d="M12 20.995 8.316 9.925l-5.154-.001z" />
                <path
                    fill="#fca326"
                    d="m3.158 9.927-1.12 3.364a.74.74 0 0 0 .276.833L12 21z"
                />
                <path
                    fill="#e24329"
                    d="M3.16 9.927h5.16L6.1 3.26a.38.38 0 0 0-.364-.256.38.38 0 0 0-.364.256z"
                />
                <path fill="#fc6d26" d="m12 20.995 3.682-11.07 5.163-.001z" />
                <path
                    fill="#fca326"
                    d="m20.842 9.927 1.12 3.364a.73.73 0 0 1-.276.833L12 20.994l8.84-11.067z"
                />
                <path
                    fill="#e24329"
                    d="M20.844 9.927h-5.16l2.217-6.667a.38.38 0 0 1 .363-.256c.165 0 .311.103.363.256z"
                />
            </svg>
        );
    }
);
