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

export const IconSettings24 = 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.5 1a2.25 2.25 0 0 1 2.25 2.25v.178q.711.229 1.366.566l.126-.126a2.25 2.25 0 0 1 3.183 0l.707.707a2.25 2.25 0 0 1 0 3.182l-.126.127q.337.654.566 1.366h.178A2.25 2.25 0 0 1 23 11.5v1a2.25 2.25 0 0 1-2.25 2.25h-.178q-.229.711-.566 1.366l.126.126a2.25 2.25 0 0 1 0 3.183l-.707.707a2.25 2.25 0 0 1-3.183 0l-.126-.126a9 9 0 0 1-1.366.566v.178A2.25 2.25 0 0 1 12.5 23h-1a2.25 2.25 0 0 1-2.25-2.25v-.178a9 9 0 0 1-1.366-.566l-.126.126a2.25 2.25 0 0 1-3.183 0l-.707-.707a2.25 2.25 0 0 1 0-3.183l.126-.126a9 9 0 0 1-.566-1.366H3.25A2.25 2.25 0 0 1 1 12.5v-1a2.25 2.25 0 0 1 2.25-2.25h.178q.229-.712.566-1.366l-.126-.127a2.25 2.25 0 0 1 0-3.182l.707-.707a2.25 2.25 0 0 1 3.183 0l.126.126a9 9 0 0 1 1.366-.566V3.25A2.25 2.25 0 0 1 11.5 1zm-1 1.5a.75.75 0 0 0-.75.75v.744a.75.75 0 0 1-.568.728 7.5 7.5 0 0 0-2.041.846.75.75 0 0 1-.917-.112l-.528-.527a.75.75 0 0 0-1.06 0l-.707.707a.75.75 0 0 0 0 1.06l.527.528a.75.75 0 0 1 .112.917 7.5 7.5 0 0 0-.846 2.04.75.75 0 0 1-.728.569H3.25a.75.75 0 0 0-.75.75v1c0 .414.336.75.75.75h.744a.75.75 0 0 1 .728.568c.18.728.47 1.415.846 2.041a.75.75 0 0 1-.112.917l-.527.528a.75.75 0 0 0 0 1.06l.707.707a.75.75 0 0 0 1.06 0l.528-.527a.75.75 0 0 1 .917-.112 7.5 7.5 0 0 0 2.04.846.75.75 0 0 1 .569.728v.744c0 .414.336.75.75.75h1a.75.75 0 0 0 .75-.75v-.744a.75.75 0 0 1 .568-.728 7.5 7.5 0 0 0 2.041-.846.75.75 0 0 1 .917.112l.528.527a.75.75 0 0 0 1.06 0l.707-.707a.75.75 0 0 0 0-1.06l-.527-.528a.75.75 0 0 1-.112-.917 7.5 7.5 0 0 0 .846-2.04.75.75 0 0 1 .728-.569h.744a.75.75 0 0 0 .75-.75v-1a.75.75 0 0 0-.75-.75h-.744a.75.75 0 0 1-.728-.568 7.5 7.5 0 0 0-.846-2.041.75.75 0 0 1 .112-.917l.527-.528a.75.75 0 0 0 0-1.06l-.707-.707a.75.75 0 0 0-1.06 0l-.528.527a.75.75 0 0 1-.917.112 7.5 7.5 0 0 0-2.04-.846.75.75 0 0 1-.569-.728V3.25a.75.75 0 0 0-.75-.75zM12 8a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 1.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"
                />
            </svg>
        );
    }
);
