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

export const IconYoutubeColor16 = 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="red"
                    d="M14.712 4.633a1.75 1.75 0 0 0-1.234-1.234C12.382 3.11 8 3.11 8 3.11s-4.382 0-5.478.289c-.6.161-1.072.634-1.234 1.234C1 5.728 1 8 1 8s0 2.283.288 3.367c.162.6.635 1.073 1.234 1.234C3.618 12.89 8 12.89 8 12.89s4.382 0 5.478-.289a1.75 1.75 0 0 0 1.234-1.234C15 10.272 15 8 15 8s0-2.272-.288-3.367"
                />
                <path fill="#fff" d="m6.593 10.11 3.644-2.098-3.644-2.11z" />
            </svg>
        );
    }
);
