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

export const IconPhoneCall16 = 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="M4.39 0a2.206 2.206 0 0 1 2.204 1.896l.002.007c.085.642.242 1.274.468 1.88a2.2 2.2 0 0 1-.497 2.326l-.512.512a10.9 10.9 0 0 0 3.312 3.306l.515-.514a2.21 2.21 0 0 1 2.327-.496 8.6 8.6 0 0 0 1.885.469h.007a2.206 2.206 0 0 1 1.898 2.238c-.008.317-.002 1.703 0 2.087v.075a2.2 2.2 0 0 1-1.5 2.098c-.291.098-.6.135-.906.107h-.014a15.2 15.2 0 0 1-6.618-2.351c-1.98-1.283-3.306-2.6-4.596-4.587A15.14 15.14 0 0 1 .01 2.416l-.001-.012A2.21 2.21 0 0 1 2.206 0zM2.209 1.5a.72.72 0 0 0-.523.23.7.7 0 0 0-.182.534 13.6 13.6 0 0 0 2.12 5.972c1.174 1.809 2.349 2.977 4.153 4.145a13.7 13.7 0 0 0 5.957 2.117.715.715 0 0 0 .707-.42c.04-.09.06-.188.06-.286l-.001-.071c-.002-.373-.008-1.792 0-2.134a.706.706 0 0 0-.606-.715c-.754-.1-1.495-.284-2.208-.55h-.002a.72.72 0 0 0-.746.158l-.924.922a.75.75 0 0 1-.9.121 12.4 12.4 0 0 1-4.656-4.646.75.75 0 0 1 .122-.902l.924-.922a.71.71 0 0 0 .157-.742v-.002a10 10 0 0 1-.55-2.205A.71.71 0 0 0 4.4 1.5zm7.306 1.622a.75.75 0 0 1 .88-.593 3.9 3.9 0 0 1 3.077 3.077.75.75 0 0 1-1.473.288 2.4 2.4 0 0 0-1.892-1.892.75.75 0 0 1-.592-.88m.819-3.117a6.413 6.413 0 0 1 5.662 5.655.75.75 0 1 1-1.49.167 4.91 4.91 0 0 0-4.338-4.332.75.75 0 0 1 .166-1.49"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
