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

export const IconMic16 = 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="M12.75 6a.75.75 0 0 1 .75.75v1.385a5.3 5.3 0 0 1-1.618 3.802A5.55 5.55 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.55 5.55 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.07 4.07 0 0 0 2.836-1.14A3.8 3.8 0 0 0 12 8.135V6.75a.75.75 0 0 1 .75-.75M8 0c.78 0 1.539.29 2.105.821.567.533.895 1.266.895 2.04V8.14c0 .774-.328 1.507-.896 2.04A3.08 3.08 0 0 1 8 11c-.78 0-1.539-.29-2.104-.821A2.8 2.8 0 0 1 5 8.139V2.86c0-.774.328-1.507.896-2.04A3.08 3.08 0 0 1 8 0m0 1.5c-.413 0-.8.154-1.078.415-.277.26-.422.601-.422.946V8.14c0 .345.145.686.422.946.278.261.665.415 1.078.415s.8-.154 1.078-.415c.277-.26.422-.601.422-.946V2.86c0-.345-.145-.686-.422-.946A1.58 1.58 0 0 0 8 1.5"
                />
            </svg>
        );
    }
);
