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

export const IconHeartOff24 = 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
                        fillRule="evenodd"
                        d="M2.28 1.22a.75.75 0 0 0-1.06 1.06L3.28 4.342q-.248.195-.475.42A5.97 5.97 0 0 0 1 9.03c0 1.605.651 3.14 1.806 4.27l8.67 8.485a.75.75 0 0 0 1.048 0l4.145-4.056 5.05 5.05a.75.75 0 1 0 1.061-1.06zm13.328 15.449L4.351 5.412q-.261.193-.496.421A4.47 4.47 0 0 0 2.5 9.031c0 1.196.485 2.347 1.355 3.198L12 20.2z"
                        clipRule="evenodd"
                    />
                    <path d="M14.508 3.457a6.25 6.25 0 0 1 4.693 0 6.2 6.2 0 0 1 1.993 1.304 6 6 0 0 1 1.336 1.957 5.93 5.93 0 0 1 0 4.626 6 6 0 0 1-1.336 1.957l-1.04 1.017a.75.75 0 0 1-1.049-1.072l1.04-1.017c.43-.421.771-.921 1.003-1.47a4.43 4.43 0 0 0 0-3.456 4.5 4.5 0 0 0-1.003-1.47 4.7 4.7 0 0 0-1.508-.986 4.75 4.75 0 0 0-3.566 0 4.7 4.7 0 0 0-1.507.986l-1.04 1.018a.75.75 0 0 1-1.049 0l-1.04-1.018a4.6 4.6 0 0 0-1.257-.875.75.75 0 1 1 .644-1.356c.61.29 1.173.68 1.663 1.16l.515.503.515-.504a6.2 6.2 0 0 1 1.993-1.304" />
                </g>
            </svg>
        );
    }
);
