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

export const IconMesh24 = 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 1c1.838 0 3.57.45 5.093 1.247.262-.157.57-.247.897-.247H18a1.75 1.75 0 0 1 1.704 2.148A10.97 10.97 0 0 1 23 12a11 11 0 0 1-.44 3.09A1.75 1.75 0 0 1 21.25 18h-.03A10.99 10.99 0 0 1 12 23c-1.073 0-2.11-.153-3.09-.44-.309.274-.715.44-1.16.44h-.01a1.75 1.75 0 0 1-1.75-1.75v-.035A10.99 10.99 0 0 1 1 12c0-2.444.797-4.702 2.146-6.528A1.75 1.75 0 0 1 4.74 3h.009c.254 0 .496.054.714.151A10.95 10.95 0 0 1 12 1m3.41 10.775c-1.515 2.857-3.36 5.497-6.066 8.75.09.197.143.414.154.642A9.5 9.5 0 0 0 12 21.5a9.49 9.49 0 0 0 7.864-4.169 1.74 1.74 0 0 1-.262-1.697c-1.477-1.49-2.83-2.747-4.193-3.859M4.293 6.442A9.46 9.46 0 0 0 2.5 12a9.49 9.49 0 0 0 4.17 7.865q.159-.123.345-.208c-.012-4.963-.625-8.255-2.411-13.162a2 2 0 0 1-.31-.053m1.783-.283c1.738 4.813 2.384 8.187 2.435 13.02 2.538-3.084 4.267-5.6 5.697-8.343-2.351-1.762-4.842-3.177-8.132-4.677m12.684-.833a1.7 1.7 0 0 1-.595.166c-.671 1.804-1.335 3.405-2.064 4.914 1.494 1.2 2.968 2.56 4.579 4.186q.23-.079.486-.09A9.5 9.5 0 0 0 21.5 12a9.47 9.47 0 0 0-2.74-6.674M12 2.5a9.46 9.46 0 0 0-5.56 1.796q.053.196.059.407c3.388 1.534 5.97 2.983 8.388 4.768a56 56 0 0 0 1.867-4.483 1.75 1.75 0 0 1-.497-1.483A9.46 9.46 0 0 0 12 2.5"
                />
            </svg>
        );
    }
);
