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

export const IconTextWrap24 = 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={color}
                    d="M2.75 3.25A.75.75 0 0 1 3.5 4v16A.75.75 0 0 1 2 20V4a.75.75 0 0 1 .75-.75m18.5 0A.75.75 0 0 1 22 4v16a.75.75 0 0 1-1.5 0V4a.75.75 0 0 1 .75-.75m-6.337 5.265c.966.067 1.886.376 2.524 1.026.718.731.918 1.642.918 2.418s-.236 1.76-.91 2.467c-.688.722-1.81 1.074-2.948 1.074h-4.185l.72.72.051.056a.75.75 0 0 1-1.056 1.056l-.056-.052-2-2-.043-.047a1 1 0 0 1-.078-.112l-.042-.084q-.007-.017-.012-.034a1 1 0 0 1-.035-.14l-.004-.02a.8.8 0 0 1 .012-.252q.003-.018.01-.035a1 1 0 0 1 .029-.09l.015-.033a1 1 0 0 1 .044-.081l.02-.03a1 1 0 0 1 .084-.102l2-2a.75.75 0 0 1 1.112 1.004l-.052.056-.72.72h4.186c.885 0 1.55-.28 1.862-.608.327-.343.495-.903.495-1.433 0-.531-.133-1.007-.487-1.367-.299-.305-.824-.53-1.548-.581L14.497 10H6.498a.75.75 0 1 1 0-1.5h8z"
                />
            </svg>
        );
    }
);
