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

export const IconThumbsUp16 = 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="M7.412 0a2.576 2.576 0 0 1 2.576 2.575v2.376h3.517a2.25 2.25 0 0 1 2.224 2.588l-.994 6.549A2.25 2.25 0 0 1 12.511 16H2.25A2.25 2.25 0 0 1 0 13.75V8.616a2.25 2.25 0 0 1 2.25-2.25h1.549l2.51-5.65A1.21 1.21 0 0 1 7.413 0M2.25 7.866a.75.75 0 0 0-.75.75v5.134c0 .414.336.75.75.75h1.286V7.866zm2.786-.59V14.5h7.475a.75.75 0 0 0 .741-.638l.994-6.549a.75.75 0 0 0-.741-.862H9.738c-.69 0-1.25-.56-1.25-1.25V2.575c0-.53-.385-.972-.891-1.06z"
                />
            </svg>
        );
    }
);
