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

export const IconSettings16 = 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.5 0c.966 0 1.75.784 1.75 1.75v.15q.241.09.473.196l.105-.106a1.75 1.75 0 0 1 2.476 0l.707.707a1.75 1.75 0 0 1 0 2.475l-.107.106q.106.231.196.472h.15c.966 0 1.75.784 1.75 1.75v1a1.75 1.75 0 0 1-1.75 1.75h-.15q-.089.241-.196.473l.107.105a1.75 1.75 0 0 1 0 2.476l-.707.707a1.75 1.75 0 0 1-2.476 0l-.106-.107a6 6 0 0 1-.472.196v.15A1.75 1.75 0 0 1 8.5 16h-1a1.75 1.75 0 0 1-1.75-1.75v-.15a7 7 0 0 1-.472-.196l-.106.107a1.75 1.75 0 0 1-2.476 0l-.707-.707a1.75 1.75 0 0 1 0-2.476l.107-.105a7 7 0 0 1-.196-.473h-.15A1.75 1.75 0 0 1 0 8.5v-1c0-.966.784-1.75 1.75-1.75h.15q.09-.24.196-.472l-.107-.106a1.75 1.75 0 0 1 0-2.475l.707-.707a1.75 1.75 0 0 1 2.476 0l.105.106q.233-.106.473-.196v-.15C5.75.784 6.534 0 7.5 0zm-1 1.5a.25.25 0 0 0-.25.25v.697a.75.75 0 0 1-.555.725q-.632.171-1.186.491a.75.75 0 0 1-.905-.119l-.493-.493a.25.25 0 0 0-.353 0l-.708.707a.25.25 0 0 0 0 .353l.494.493c.24.24.288.61.12.905a5 5 0 0 0-.492 1.186.75.75 0 0 1-.725.555H1.75a.25.25 0 0 0-.25.25v1c0 .138.112.25.25.25h.697a.75.75 0 0 1 .725.555c.113.42.279.818.491 1.186a.75.75 0 0 1-.119.905l-.494.494a.25.25 0 0 0 0 .353l.708.707a.25.25 0 0 0 .353 0l.493-.494a.75.75 0 0 1 .905-.12c.368.213.767.38 1.186.492a.75.75 0 0 1 .555.725v.697c0 .138.112.25.25.25h1a.25.25 0 0 0 .25-.25v-.697a.75.75 0 0 1 .555-.725c.42-.113.818-.279 1.186-.491a.75.75 0 0 1 .905.12l.493.493a.25.25 0 0 0 .353 0l.708-.707a.25.25 0 0 0 0-.353l-.494-.495a.75.75 0 0 1-.12-.904c.213-.368.379-.767.492-1.186a.75.75 0 0 1 .725-.555h.697a.25.25 0 0 0 .25-.25v-1a.25.25 0 0 0-.25-.25h-.697a.75.75 0 0 1-.725-.555 5 5 0 0 0-.491-1.186.75.75 0 0 1 .12-.905l.493-.493a.25.25 0 0 0 0-.353l-.708-.707a.25.25 0 0 0-.353 0l-.493.493a.75.75 0 0 1-.905.12 5 5 0 0 0-1.186-.492.75.75 0 0 1-.555-.725V1.75a.25.25 0 0 0-.25-.25zM8 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6m0 1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"
                />
            </svg>
        );
    }
);
