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

export const IconProvider24 = 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="M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1m.5 16.884v3.603a9.5 9.5 0 0 0 3.5-.868v-4.767zm-4.616 2.68c.96.463 2.01.768 3.116.884v-2.693zM17.5 14.98v4.767a9.5 9.5 0 0 0 3.977-7.076zm-15-2.897A9.48 9.48 0 0 0 6 19.366v-9.15zm5-2.666v9.635L11 17.02V7.55zm5-2.667v9.4l3.5-2.033V4.884zm5 6.496 3.943-2.29A9.5 9.5 0 0 0 17.5 4.253zM6 4.634a9.5 9.5 0 0 0-3.349 5.669L6 8.517zm5-2.082A9.4 9.4 0 0 0 7.5 3.63v4.086L11 5.85zm1.5 2.498 3.3-1.76a9.5 9.5 0 0 0-3.3-.777z"
                />
            </svg>
        );
    }
);
