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

export const IconGitlab16 = 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="M14.975 8.904 14.19 6.55l-1.552-4.67a.27.27 0 0 0-.255-.18.27.27 0 0 0-.254.18l-1.552 4.667H5.422L3.87 1.879a.27.27 0 0 0-.254-.179.27.27 0 0 0-.254.18l-1.55 4.667-.784 2.357a.515.515 0 0 0 .193.583l6.78 4.812 6.778-4.812a.52.52 0 0 0 .196-.583"
                />
            </svg>
        );
    }
);
