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

export const IconCloudLock24 = 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="M12.001 9c1.066 0 2.087.436 2.835 1.203a4.13 4.13 0 0 1 1.165 2.88v.931c1.124.125 2 1.08 2 2.237v4.5a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.254 2.254 0 0 1-2.25-2.25v-4.5c0-1.157.877-2.11 2-2.237v-.93c0-1.076.418-2.114 1.164-2.881A3.97 3.97 0 0 1 12.001 9m-3.75 6.5a.754.754 0 0 0-.75.75v4.5c0 .413.338.749.75.75h7.5c.414 0 .75-.336.75-.75v-4.5a.75.75 0 0 0-.75-.75zm3.75 2.5c.414.001.75.337.75.75v.5c0 .414-.336.75-.75.75a.754.754 0 0 1-.75-.75v-.5c0-.412.338-.747.75-.75M8.028 1.048a8.89 8.89 0 0 1 7.586 2.982 9 9 0 0 1 1.803 3.16h.726a5.85 5.85 0 0 1 3.697 1.325 5.92 5.92 0 0 1 2.037 3.374 5.95 5.95 0 0 1-.527 3.91 5.9 5.9 0 0 1-1.839 2.126.753.753 0 0 1-1.045-.178.754.754 0 0 1 .178-1.045 4.4 4.4 0 0 0 1.37-1.585c.46-.9.6-1.933.394-2.924a4.42 4.42 0 0 0-1.52-2.517 4.35 4.35 0 0 0-2.745-.987h-1.288a.756.756 0 0 1-.727-.564 7.5 7.5 0 0 0-1.64-3.105 7.44 7.44 0 0 0-2.858-2.007 7.4 7.4 0 0 0-3.45-.473c-1.17.12-2.297.52-3.284 1.165a7.5 7.5 0 0 0-2.4 2.549 7.57 7.57 0 0 0-.338 6.832c.289.644 1.076 1.681 1.608 2.29a.75.75 0 0 1-.071 1.058.75.75 0 0 1-1.058-.071c-.546-.624-1.463-1.804-1.849-2.666a9.07 9.07 0 0 1 .406-8.188 9 9 0 0 1 2.881-3.06 8.9 8.9 0 0 1 3.953-1.401M12 10.5c-.655 0-1.292.268-1.761.75a2.64 2.64 0 0 0-.739 1.833V14h5v-.917c0-.69-.269-1.35-.74-1.833a2.47 2.47 0 0 0-1.76-.75"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
