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

export const IconProvider16 = 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="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0M5.803 14.12a6.5 6.5 0 0 0 1.697.361V13.15zM9 12.292v2.13a6.5 6.5 0 0 0 2-.655v-2.619zM1.582 9.037A6.5 6.5 0 0 0 4 13.124V7.718zM12.5 10.293v2.397a6.5 6.5 0 0 0 1.887-3.475zm-7-3.394v5.666l2-1.143V5.809zM9 4.991v5.574l2-1.143V3.9zm3.5 3.573 1.976-1.128A6.48 6.48 0 0 0 12.5 3.31zM4 2.876a6.5 6.5 0 0 0-2.469 4.48L4 6.01zm3.5-1.357a6.5 6.5 0 0 0-2 .48V5.19l2-1.09zM9 3.282l1.962-1.07A6.5 6.5 0 0 0 9 1.576z"
                />
            </svg>
        );
    }
);
