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

export const IconMoon24 = 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}
                    fillRule="evenodd"
                    d="M11.098 2.004a.75.75 0 0 1 .722.378.75.75 0 0 1-.05.814 6.46 6.46 0 0 0 .627 8.408 6.46 6.46 0 0 0 8.407.626.75.75 0 0 1 .814-.05.75.75 0 0 1 .38.723 10.03 10.03 0 0 1-6.574 8.501 10.02 10.02 0 0 1-10.49-2.339 10.022 10.022 0 0 1 .957-15.011 10.03 10.03 0 0 1 5.207-2.05M9.7 3.784a8.53 8.53 0 0 0-5.693 5.303 8.52 8.52 0 0 0 1.988 8.918 8.523 8.523 0 0 0 12.765-.813 8.5 8.5 0 0 0 1.458-2.891A7.962 7.962 0 0 1 9.7 3.783"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
