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

export const IconPinOff24 = 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="M9.536 9.518a.75.75 0 0 1 1.06 1.06l-.97.97a.75.75 0 0 1-.446.215l-2.742.305c-.195.021-.258.219-.168.343.693.959 1.622 2.174 2.385 2.937s1.98 1.692 2.938 2.385c.124.09.32.027.342-.167l.305-2.742a.75.75 0 0 1 .215-.448l.901-.9a.75.75 0 1 1 1.06 1.06l-.714.714-.275 2.48c-.144 1.295-1.623 2.006-2.713 1.218-.774-.558-1.767-1.31-2.571-2.027L4.28 20.784a.75.75 0 0 1-1.06-1.061l3.862-3.863c-.717-.805-1.469-1.797-2.027-2.57-.788-1.091-.077-2.57 1.217-2.714l2.48-.275zm4.078-6.035a1.75 1.75 0 0 1 2.464.01l4.425 4.426a1.75 1.75 0 0 1 0 2.475l-2.612 2.612a.75.75 0 0 1-1.061-1.06l2.612-2.613a.25.25 0 0 0 0-.353l-4.424-4.425a.25.25 0 0 0-.353-.002l-2.674 2.625a.75.75 0 0 1-1.05-1.07z" />
                    <path d="M1.47 1.47a.75.75 0 0 1 1.06 0l20.5 20.5a.75.75 0 1 1-1.06 1.06L1.47 2.53a.75.75 0 0 1 0-1.06" />
                </g>
            </svg>
        );
    }
);
