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

export const IconService16 = 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="M11 6.246a.75.75 0 0 1 .75.75v.286l-.001.042c.479.098.925.286 1.318.546l.029-.03.202-.202a.75.75 0 0 1 1.06 1.06l-.202.203-.029.028c.26.394.45.84.548 1.318H15a.75.75 0 0 1 0 1.5h-.286l-.038-.002c-.097.48-.286.927-.547 1.322q.014.012.027.025l.202.202a.75.75 0 0 1-1.06 1.06l-.202-.201-.026-.027a3.7 3.7 0 0 1-1.321.548l.001.036v.286a.75.75 0 0 1-1.5 0v-.286l.001-.036a3.7 3.7 0 0 1-1.321-.548l-.026.027-.202.202a.75.75 0 0 1-1.06-1.06l.202-.203.027-.025a3.7 3.7 0 0 1-.547-1.322l-.038.001H7a.75.75 0 0 1 0-1.5h.286l.04.001c.097-.478.286-.924.547-1.318l-.03-.028-.201-.202a.75.75 0 0 1 1.06-1.061l.202.201.029.031c.393-.26.84-.448 1.318-.546l-.001-.042v-.286a.75.75 0 0 1 .75-.75M6.834.33a2.25 2.25 0 0 1 2.332 0l5.25 3.182A2.25 2.25 0 0 1 15.5 5.435v.564A.75.75 0 0 1 14 6v-.564a.75.75 0 0 0-.361-.64l-5.25-3.183a.75.75 0 0 0-.778 0l-5.25 3.182a.75.75 0 0 0-.361.64v5.13c0 .262.137.505.361.641l4.028 2.44a.75.75 0 0 1-.778 1.284l-4.027-2.441A2.25 2.25 0 0 1 .5 10.564v-5.13a2.25 2.25 0 0 1 1.084-1.923zM11 8.75a2.249 2.249 0 0 0-1.873 3.498A2.25 2.25 0 0 0 11 13.25 2.247 2.247 0 0 0 13.25 11 2.249 2.249 0 0 0 11 8.75"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
