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

export const IconWand24 = 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="M13.482 6.707a2.501 2.501 0 0 1 3.536 3.535L5.703 21.557a2.501 2.501 0 0 1-3.535-3.536zM3.229 19.081a1.001 1.001 0 0 0 1.414 1.415l8.662-8.662-1.414-1.415zm15.177-6.07a.75.75 0 0 1 1.38 0l.57 1.335a.75.75 0 0 0 .395.393l1.333.572a.751.751 0 0 1 0 1.378l-1.333.572a.75.75 0 0 0-.395.393l-.57 1.333a.75.75 0 0 1-1.38 0l-.571-1.333a.75.75 0 0 0-.393-.393l-1.334-.572a.75.75 0 0 1 0-1.378l1.334-.572a.75.75 0 0 0 .393-.393zm-2.449-5.243a1 1 0 0 0-1.415 0l-1.59 1.59 1.413 1.415 1.592-1.591c.39-.39.39-1.024 0-1.414M6.15 2.125a.75.75 0 0 1 .976-.976l1.097.439c.178.07.378.071.556 0l1.097-.439a.75.75 0 0 1 .975.976l-.439 1.097a.75.75 0 0 0 0 .556l.439 1.097a.75.75 0 0 1-.975.975L8.778 5.41a.75.75 0 0 0-.556 0l-1.097.439a.75.75 0 0 1-.976-.975l.44-1.097a.75.75 0 0 0 0-.556zm11.75 0a.75.75 0 0 1 .976-.976l.722.29c.178.07.378.07.556 0l.722-.29a.75.75 0 0 1 .975.976l-.288.722a.75.75 0 0 0 0 .556l.288.722a.75.75 0 0 1-.975.975l-.722-.288a.75.75 0 0 0-.556 0l-.722.288a.75.75 0 0 1-.976-.975l.29-.722a.75.75 0 0 0 0-.556z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
