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

export const IconMinusPlusCircle24 = 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}
                <g fill={color}>
                    <path d="M6 7a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5zM15.75 12.25A.75.75 0 0 0 15 13v2h-2a.75.75 0 0 0 0 1.5h2v2a.75.75 0 0 0 1.5 0v-2h2a.75.75 0 0 0 0-1.5h-2v-2a.75.75 0 0 0-.75-.75" />
                    <path
                        fillRule="evenodd"
                        d="M8.25 15.5q.128 0 .254-.004-.004.126-.004.254a7.25 7.25 0 1 0 6.996-7.246q.003-.126.004-.254a7.25 7.25 0 1 0-7.25 7.25m0-13a5.75 5.75 0 1 0 .467 11.481 7.26 7.26 0 0 1 5.264-5.264q.02-.231.019-.467A5.75 5.75 0 0 0 8.25 2.5M10 15.75a5.75 5.75 0 1 1 11.5 0 5.75 5.75 0 0 1-11.5 0"
                        clipRule="evenodd"
                    />
                </g>
            </svg>
        );
    }
);
