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

export const IconEnterprise16 = 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}
                <path
                    fill={color}
                    d="M13.75 5.5A2.25 2.25 0 0 1 16 7.75v7.5a.75.75 0 0 1-1.5 0v-7.5a.75.75 0 0 0-.75-.75h-4a.75.75 0 0 0-.75.75v7.5a.75.75 0 0 1-1.5 0v-7.5A2.25 2.25 0 0 1 9.75 5.5zm-.5 6.5a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-1.5 0V13.5H11v1.75a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 .75-.75zM8 0a8 8 0 0 1 6.848 3.861.75.75 0 0 1-1.283.778 6.52 6.52 0 0 0-3.693-2.866c.497.687.913 1.418 1.241 2.18a.75.75 0 0 1-1.378.594c-.417-.969-1-1.884-1.735-2.711C6.667 3.335 5.834 5.124 5.58 7h.67a.75.75 0 0 1 0 1.5h-.724a9.4 9.4 0 0 0 1.199 3.883.75.75 0 0 1-1.307.736A10.9 10.9 0 0 1 4.022 8.5H1.52a6.51 6.51 0 0 0 4.687 5.75.75.75 0 1 1-.412 1.441A8 8 0 0 1 8 0m2.75 9.75a.75.75 0 0 1 0 1.5h-.25a.75.75 0 0 1 0-1.5zm2.25 0a.75.75 0 0 1 0 1.5h-.25a.75.75 0 0 1 0-1.5zm-2.25-2a.75.75 0 0 1 0 1.5h-.25a.75.75 0 0 1 0-1.5zm2.25 0a.75.75 0 0 1 0 1.5h-.25a.75.75 0 0 1 0-1.5zM6.128 1.773A6.51 6.51 0 0 0 1.576 7h2.492a11.1 11.1 0 0 1 2.06-5.227"
                />
            </svg>
        );
    }
);
