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

export const IconRadio16 = 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="M2.35 2.463a.75.75 0 0 1 1.046 1.074A6.24 6.24 0 0 0 1.5 8c0 1.67.68 3.276 1.896 4.463a.75.75 0 0 1-1.046 1.074A7.74 7.74 0 0 1 0 8c0-2.08.848-4.072 2.35-5.537m10.24.014a.75.75 0 0 1 1.06-.014A7.74 7.74 0 0 1 16 8c0 2.08-.848 4.072-2.35 5.537a.75.75 0 0 1-1.047-1.074A6.24 6.24 0 0 0 14.5 8c0-1.67-.68-3.276-1.896-4.463a.75.75 0 0 1-.014-1.06m-2.486 2.515a.75.75 0 0 1 1.06-.033c.42.395.756.867.986 1.39s.35 1.085.35 1.654c0 .568-.12 1.13-.35 1.653s-.566.995-.986 1.39a.751.751 0 0 1-1.027-1.093c.276-.26.493-.567.64-.901S11 8.362 11 8.003s-.076-.716-.223-1.05a2.8 2.8 0 0 0-.64-.901.75.75 0 0 1-.034-1.06m-5.268-.039a.75.75 0 0 1 1.027 1.093c-.276.26-.493.567-.64.901A2.6 2.6 0 0 0 5 7.997c0 .358.076.715.223 1.049s.364.641.64.901a.75.75 0 0 1-1.027 1.093 4.3 4.3 0 0 1-.986-1.39 4.1 4.1 0 0 1-.35-1.653c0-.569.12-1.132.35-1.654.23-.523.566-.995.986-1.39M8.01 7a1 1 0 0 1 0 2H8a1 1 0 0 1 0-2z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
