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

export const IconService24 = 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}
                    fillRule="evenodd"
                    d="M16.25 9.528c.69 0 1.25.56 1.25 1.25v.371c.533.13 1.034.343 1.49.621l.265-.265a1.251 1.251 0 0 1 1.768 1.768l-.272.273c.273.454.48.953.606 1.482h.393a1.25 1.25 0 0 1 0 2.5h-.407a5.2 5.2 0 0 1-.613 1.462l.015.016.278.277a1.25 1.25 0 0 1-1.768 1.768l-.277-.278-.023-.023a5.2 5.2 0 0 1-1.456.6l.001.036v.392a1.25 1.25 0 0 1-2.5 0v-.392l.001-.036a5.2 5.2 0 0 1-1.456-.6l-.022.023-.278.278a1.25 1.25 0 0 1-1.768-1.768l.278-.277.015-.016a5.2 5.2 0 0 1-.613-1.462h-.407a1.25 1.25 0 0 1 0-2.5h.394c.126-.53.332-1.028.605-1.482l-.272-.273a1.251 1.251 0 0 1 1.768-1.768l.266.265c.455-.278.956-.49 1.489-.62v-.372c0-.69.56-1.25 1.25-1.25m-5.691-8.522a2.75 2.75 0 0 1 2.882 0l7.75 4.77A2.75 2.75 0 0 1 22.5 8.116V9.5a.75.75 0 0 1-1.5 0V8.117a1.25 1.25 0 0 0-.595-1.064l-7.75-4.77a1.25 1.25 0 0 0-1.31 0l-7.75 4.77A1.25 1.25 0 0 0 3 8.117v7.765c0 .434.225.837.595 1.064l5.549 3.415a.75.75 0 0 1-.788 1.277L2.81 18.225A2.75 2.75 0 0 1 1.5 15.882V8.117a2.75 2.75 0 0 1 1.309-2.342zM16.25 13A3.247 3.247 0 0 0 13 16.25a3.246 3.246 0 0 0 3.25 3.25 3.246 3.246 0 0 0 3.25-3.25A3.247 3.247 0 0 0 16.25 13"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
