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

export const IconBug16 = 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}
                    fillRule="evenodd"
                    d="M10.136.803a.75.75 0 0 1 1.06 0 .75.75 0 0 1 0 1.06l-.415.415C11.524 2.932 12 3.854 12 4.91q0 .154-.014.306.141.023.239.045a.976.976 0 0 1 .775.951V6.6l1.571-.628a.753.753 0 0 1 .976.417.753.753 0 0 1-.418.975L13 8.214v1.13l1.85.246c.41.055.698.433.644.843a.753.753 0 0 1-.843.644l-1.658-.221a3.95 3.95 0 0 1-.426 1.555l2.364.887a.753.753 0 0 1 .438.966.753.753 0 0 1-.966.438l-2.665-1a1 1 0 0 1-.122-.057C10.687 14.49 9.382 15 8 15s-2.687-.51-3.615-1.355a1 1 0 0 1-.121.057l-2.667 1a.75.75 0 0 1-.965-.438.75.75 0 0 1 .438-.966l2.365-.887a3.95 3.95 0 0 1-.427-1.555l-1.658.221a.753.753 0 0 1-.843-.644.75.75 0 0 1 .645-.843l1.848-.246V8.175L.971 7.363a.753.753 0 0 1-.418-.975.753.753 0 0 1 .975-.417L3 6.559V6.21c0-.473.335-.854.777-.951q.097-.022.237-.045a4 4 0 0 1-.014-.306c0-1.055.476-1.977 1.219-2.63l-.415-.416a.75.75 0 0 1 0-1.06.75.75 0 0 1 1.06 0l.695.694a4.33 4.33 0 0 1 2.884 0zM7.999 6.5c-1.904 0-2.957.086-3.5.158v3.95C4.5 12.1 5.955 13.499 8 13.5s3.499-1.4 3.5-2.892v-3.95C10.956 6.586 9.904 6.5 8 6.5m0-3.75c-1.46 0-2.5 1.044-2.5 2.16q0 .077.007.153A43 43 0 0 1 7.999 5c1.053 0 1.868.026 2.494.063q.006-.076.006-.154c0-1.115-1.04-2.158-2.5-2.159"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
