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

export const IconGoogleDocsColor24 = 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="#3086f6"
                    d="M17.89 22H6.11c-.748 0-1.36-.614-1.36-1.364V3.364C4.75 2.614 5.362 2 6.11 2h8.156l4.984 5v13.636c0 .75-.612 1.364-1.36 1.364"
                />
                <path fill="#0c67d6" d="m14.25 2 5 5h-5z" />
                <path
                    fill="#fdffff"
                    d="M15.688 10.864H7.812V9.727h7.876zm0 1.59H7.812v1.137h7.876zM13.5 15.183H7.813v1.136H13.5z"
                />
            </svg>
        );
    }
);
