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

export const IconMicOff16 = 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="M1.22 1.22a.75.75 0 0 1 1.06 0l12.5 12.5a.751.751 0 0 1-1.06 1.06l-2.382-2.382A5.6 5.6 0 0 1 8.75 13.45v1.05h1.75a.75.75 0 0 1 0 1.5h-5a.75.75 0 0 1 0-1.5h1.75v-1.05a5.56 5.56 0 0 1-3.132-1.513A5.3 5.3 0 0 1 2.5 8.135V6.75a.75.75 0 0 1 1.5 0v1.385a3.8 3.8 0 0 0 1.164 2.725A4.07 4.07 0 0 0 8 12a4.1 4.1 0 0 0 2.262-.678l-.726-.725a3.12 3.12 0 0 1-3.64-.418A2.8 2.8 0 0 1 5 8.139V6.06L1.22 2.28a.75.75 0 0 1 0-1.061M12.78 6c.414 0 .75.336.75.75v1.385q0 .4-.06.79a.75.75 0 0 1-1.483-.227q.042-.279.043-.563V6.75a.75.75 0 0 1 .75-.75M6.5 8.139c0 .345.145.686.422.946.278.26.665.415 1.078.415q.202 0 .392-.048L6.5 7.561zM8 0c.78 0 1.539.29 2.104.821A2.8 2.8 0 0 1 11 2.861v3.444a.751.751 0 0 1-1.5 0V2.86a1.3 1.3 0 0 0-.422-.946A1.58 1.58 0 0 0 8 1.5c-.413 0-.8.154-1.078.415-.129.12-.229.26-.299.407a.751.751 0 0 1-1.354-.644c.151-.319.363-.61.626-.857A3.08 3.08 0 0 1 8 0"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
