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

export const IconCloudLock16 = 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={17}
                height={16}
                fill="none"
                viewBox="0 0 17 16"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    fillRule="evenodd"
                    d="M8.002 6c.479 0 .921.102 1.3.334.38.236.642.57.816.94.236.503.332 1.112.366 1.738a2.25 2.25 0 0 1 2.018 2.238v2.5a2.25 2.25 0 0 1-2.25 2.25h-4.5a2.253 2.253 0 0 1-2.25-2.25v-2.5c0-1.163.886-2.12 2.019-2.238.034-.626.13-1.235.365-1.737.174-.37.436-.705.816-.94C7.08 6.1 7.523 6 8.002 6m-2.25 4.5a.75.75 0 0 0-.75.75v2.5c0 .413.337.749.75.75h4.5c.413 0 .75-.336.75-.75v-2.5a.75.75 0 0 0-.75-.75zm2.25 1c.414 0 .75.336.75.75v.5c0 .414-.337.75-.75.75a.753.753 0 0 1-.75-.75v-.5c0-.413.337-.749.75-.75M3.935 1.374a6.034 6.034 0 0 1 6.238 1.28 6 6 0 0 1 1.505 2.284h.28c1.07 0 2.1.425 2.858 1.18a4.03 4.03 0 0 1 .718 4.733.75.75 0 0 1-1.014.312.753.753 0 0 1-.311-1.014 2.53 2.53 0 0 0-.451-2.969 2.56 2.56 0 0 0-1.8-.742h-.83a.754.754 0 0 1-.727-.562 4.5 4.5 0 0 0-1.26-2.134 4.535 4.535 0 0 0-6.693.506 4.488 4.488 0 0 0-.303 5.065.751.751 0 0 1-1.285.773 5.988 5.988 0 0 1 3.075-8.712M8.002 7.5c-.268 0-.423.057-.513.112a.67.67 0 0 0-.246.301c-.116.25-.186.607-.219 1.087H8.98c-.032-.48-.102-.838-.22-1.086a.66.66 0 0 0-.245-.302c-.09-.055-.244-.111-.513-.112"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
