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

export const IconMapPin24 = 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}
                    d="M12 0c2.65 0 5.194 1.048 7.07 2.914A9.93 9.93 0 0 1 22 9.954c0 3.882-2.49 7.39-4.832 9.85a32 32 0 0 1-4.333 3.777 20 20 0 0 1-.389.273l-.022.015-.006.004-.002.001s-.001.001-.416-.624l.415.625a.75.75 0 0 1-.83 0l-.009-.006-.022-.015-.083-.057-.306-.216a31.985 31.985 0 0 1-4.333-3.777C4.49 17.344 2 13.836 2 9.954a9.93 9.93 0 0 1 2.93-7.04A10.02 10.02 0 0 1 12 0m0 1.5a8.52 8.52 0 0 0-6.012 2.478A8.43 8.43 0 0 0 3.5 9.954c0 3.277 2.135 6.418 4.418 8.816A30.5 30.5 0 0 0 12 22.334a30.463 30.463 0 0 0 4.082-3.564c2.283-2.398 4.418-5.54 4.418-8.816 0-2.24-.895-4.39-2.488-5.976A8.52 8.52 0 0 0 12 1.5M12 6a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 1.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"
                />
            </svg>
        );
    }
);
