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

export const IconMicOff24 = 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}
                    fillRule="evenodd"
                    d="M1.22 1.22a.75.75 0 0 1 1.06 0l20.5 20.5a.751.751 0 0 1-1.06 1.06l-4.726-4.725a8.15 8.15 0 0 1-4.244 1.66V22H16c.413.001.75.336.75.75a.75.75 0 0 1-.75.75H8A.75.75 0 0 1 8 22h3.25v-2.284a8.1 8.1 0 0 1-4.898-2.227A7.63 7.63 0 0 1 4 12v-2a.75.75 0 0 1 1.5 0v2a6.13 6.13 0 0 0 1.894 4.41A6.64 6.64 0 0 0 12 18.25a6.68 6.68 0 0 0 3.923-1.267l-1.66-1.66A4.1 4.1 0 0 1 12 16a4.08 4.08 0 0 1-2.816-1.118A3.8 3.8 0 0 1 8 12.142V9.062L1.22 2.28a.75.75 0 0 1 0-1.061m18.03 8.03c.413.001.75.336.75.75v2c0 .69-.095 1.37-.277 2.024a.75.75 0 0 1-1.445-.403A6 6 0 0 0 18.5 12v-2a.75.75 0 0 1 .75-.75M9.5 12.143c0 .614.254 1.21.72 1.655A2.58 2.58 0 0 0 12 14.5c.412 0 .813-.096 1.167-.273L9.5 10.56zM12 0c1.05 0 2.064.4 2.816 1.118A3.8 3.8 0 0 1 16 3.858v6.5a.75.75 0 0 1-1.5 0v-6.5c0-.614-.256-1.211-.72-1.656A2.58 2.58 0 0 0 12 1.5c-.673 0-1.314.257-1.78.702a2.3 2.3 0 0 0-.72 1.655.75.75 0 0 1-1.5 0 3.8 3.8 0 0 1 1.184-2.739A4.08 4.08 0 0 1 12 0"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
