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

export const IconTextWrap16 = 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="M1.75 1a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V1.75A.75.75 0 0 1 1.75 1m12.5 0a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V1.75a.75.75 0 0 1 .75-.75M9.176 5.004c.867.04 1.558.38 2.055.895C11.787 6.476 12 7.222 12 8c0 .766-.193 1.518-.778 2.104C10.69 10.634 9.97 11 9 11H7.368l.153.146.053.056a.75.75 0 0 1-1.032 1.077l-.058-.05-1.5-1.438-.052-.056a1 1 0 0 1-.078-.111q-.007-.011-.012-.022-.017-.032-.032-.065l-.01-.025-.013-.044a1 1 0 0 1-.021-.085l-.005-.033a.75.75 0 0 1 .043-.37l.015-.036a1 1 0 0 1 .045-.086l.016-.025a1 1 0 0 1 .092-.113l1.5-1.5.057-.052a.75.75 0 0 1 1.055 1.056l-.052.056-.22.22H9c.547 0 .893-.189 1.161-.457.214-.214.339-.525.339-1.043 0-.506-.134-.836-.349-1.06-.21-.217-.51-.391-.953-.431L9 6.5H4.75a.75.75 0 0 1 0-1.5H9z"
                />
            </svg>
        );
    }
);
