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

export const IconEnterprise24 = 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}
                    d="M20.25 6A2.75 2.75 0 0 1 23 8.75v13.5a.75.75 0 0 1-1.5 0V8.75c0-.69-.56-1.25-1.25-1.25h-6.5c-.69 0-1.25.56-1.25 1.25v13.5a.75.75 0 0 1-1.5 0V8.75A2.75 2.75 0 0 1 13.75 6zm-2 12c.69 0 1.25.56 1.25 1.25v3a.75.75 0 0 1-1.5 0V19.5h-2v2.75a.75.75 0 0 1-1.5 0v-3c0-.69.56-1.25 1.25-1.25zM12 1c2.753 0 5.272 1.013 7.201 2.685a.75.75 0 0 1-.982 1.132 9.47 9.47 0 0 0-4.546-2.17q.426.597.796 1.229a.75.75 0 0 1-1.295.758A15 15 0 0 0 12 2.916 15.15 15.15 0 0 0 8.804 11h.446a.75.75 0 0 1 0 1.5h-.481a15.3 15.3 0 0 0 1.172 5.098.75.75 0 0 1-1.382.582 16.8 16.8 0 0 1-1.292-5.68H2.513c.215 4.143 3.085 7.586 6.942 8.655a.75.75 0 0 1-.4 1.446C4.41 21.313 1 17.056 1 12 1 5.925 5.925 1 12 1m3.75 14a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5zm3 0a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5zm-3-3a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5zm3 0a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5zm-8.423-9.354A9.51 9.51 0 0 0 2.552 11h4.747a16.7 16.7 0 0 1 3.028-8.354M15.75 9a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5zm3 0a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5z"
                />
            </svg>
        );
    }
);
