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

export const IconMoon16 = 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="M7.368 1.003a.75.75 0 0 1 .723.378.75.75 0 0 1-.05.814 4.13 4.13 0 0 0-.797 2.756 4.126 4.126 0 0 0 3.804 3.804 4.13 4.13 0 0 0 2.757-.796.75.75 0 0 1 .813-.05.75.75 0 0 1 .38.723 7.02 7.02 0 0 1-4.601 5.95 7.016 7.016 0 0 1-9.229-5.07 7.02 7.02 0 0 1 2.556-7.075 7 7 0 0 1 3.644-1.434M6.03 2.842a5.53 5.53 0 0 0-3.202 3.271 5.5 5.5 0 0 0-.196 3.074 5.52 5.52 0 0 0 4.181 4.18 5.52 5.52 0 0 0 5.562-2.009c.328-.424.591-.893.782-1.388A5.623 5.623 0 0 1 5.75 5.063a5.6 5.6 0 0 1 .281-2.221"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
