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

export const IconTwitterColor24 = 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="#1d9bf0"
                    d="M20.748 7.512c.013.194.013.388.013.584 0 5.964-4.54 12.842-12.842 12.842v-.003A12.8 12.8 0 0 1 1 18.91q.535.064 1.074.065a9.06 9.06 0 0 0 5.606-1.935 4.52 4.52 0 0 1-4.217-3.135 4.5 4.5 0 0 0 2.038-.078 4.514 4.514 0 0 1-3.62-4.424v-.057c.627.35 1.33.543 2.048.565a4.52 4.52 0 0 1-1.397-6.027 12.8 12.8 0 0 0 9.302 4.716 4.518 4.518 0 0 1 7.692-4.117c1.01-.2 1.98-.57 2.866-1.096a4.53 4.53 0 0 1-1.984 2.497A9 9 0 0 0 23 5.174a9.2 9.2 0 0 1-2.252 2.338"
                />
            </svg>
        );
    }
);
