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

export const IconMic24 = 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}
                    d="M19.25 9.25A.75.75 0 0 1 20 10v2a7.63 7.63 0 0 1-2.352 5.49 8.1 8.1 0 0 1-4.898 2.226V22H16a.75.75 0 0 1 0 1.5H8A.75.75 0 0 1 8 22h3.25v-2.284a8.1 8.1 0 0 1-4.897-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.895 4.41A6.63 6.63 0 0 0 12 18.25a6.63 6.63 0 0 0 4.605-1.84A6.13 6.13 0 0 0 18.5 12v-2a.75.75 0 0 1 .75-.75M12 0c1.05 0 2.064.399 2.816 1.118A3.8 3.8 0 0 1 16 3.858v8.285a3.8 3.8 0 0 1-1.184 2.739A4.08 4.08 0 0 1 12 16a4.08 4.08 0 0 1-2.816-1.118A3.8 3.8 0 0 1 8 12.142V3.858a3.8 3.8 0 0 1 1.184-2.739A4.08 4.08 0 0 1 12 0m0 1.5c-.674 0-1.314.256-1.78.702a2.3 2.3 0 0 0-.72 1.655v8.286c0 .614.255 1.21.72 1.655A2.58 2.58 0 0 0 12 14.5c.674 0 1.314-.256 1.78-.702a2.3 2.3 0 0 0 .72-1.655V3.857a2.3 2.3 0 0 0-.72-1.655A2.58 2.58 0 0 0 12 1.5"
                />
            </svg>
        );
    }
);
