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

export const IconCloudLightning16 = 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={16}
                height={16}
                fill="none"
                viewBox="0 0 16 16"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <g fill={color}>
                    <path d="M7.235 1.123a6.04 6.04 0 0 0-3.303.25A6 6 0 0 0 1.26 3.326a5.99 5.99 0 0 0 .515 7.929.75.75 0 0 0 1.055-1.066 4.482 4.482 0 0 1-.386-5.942A4.5 4.5 0 0 1 4.451 2.78a4.54 4.54 0 0 1 4.688.961 4.5 4.5 0 0 1 1.26 2.135.75.75 0 0 0 .726.561h.83c.676 0 1.324.268 1.8.743a2.524 2.524 0 0 1-.418 3.914.75.75 0 0 0 .812 1.262q.359-.231.665-.536a4.024 4.024 0 0 0 0-5.703 4.05 4.05 0 0 0-2.859-1.18h-.28a6 6 0 0 0-1.504-2.285 6.03 6.03 0 0 0-2.936-1.529" />
                    <path d="M9.053 7.257a.75.75 0 0 0-1.106-1.014l-2.75 3a.75.75 0 0 0 .316 1.218l3.403 1.135-1.969 2.147a.75.75 0 0 0 1.106 1.014l2.75-3a.75.75 0 0 0-.316-1.218L7.084 9.404z" />
                </g>
            </svg>
        );
    }
);
