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

export const IconTwitter16 = 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="M13.567 5.144q.01.185.008.371c0 3.796-2.889 8.173-8.172 8.173v-.002A8.13 8.13 0 0 1 1 12.398q.34.04.684.042a5.77 5.77 0 0 0 3.567-1.232 2.88 2.88 0 0 1-2.684-1.995c.431.083.875.066 1.297-.05A2.87 2.87 0 0 1 1.56 6.348v-.036c.4.222.847.345 1.304.36a2.876 2.876 0 0 1-.89-3.836 8.15 8.15 0 0 0 5.92 3 2.874 2.874 0 0 1 4.895-2.619 5.8 5.8 0 0 0 1.824-.697 2.88 2.88 0 0 1-1.262 1.588A5.7 5.7 0 0 0 15 3.656a5.8 5.8 0 0 1-1.433 1.488"
                />
            </svg>
        );
    }
);
