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

export const IconNetwork16 = 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="M9.75 0C10.44 0 11 .56 11 1.25v3.5C11 5.44 10.44 6 9.75 6H8.5v1H15a.75.75 0 0 1 0 1.5h-2.5V10h1.25c.69 0 1.25.56 1.25 1.25v3.5c0 .69-.56 1.25-1.25 1.25h-3.5C9.56 16 9 15.44 9 14.75v-3.5c0-.69.56-1.25 1.25-1.25H11V8.5H5V10h.75c.69 0 1.25.56 1.25 1.25v3.5C7 15.44 6.44 16 5.75 16h-3.5C1.56 16 1 15.44 1 14.75v-3.5c0-.69.56-1.25 1.25-1.25H3.5V8.5H1A.75.75 0 0 1 1 7h6V6h-.75C5.56 6 5 5.44 5 4.75v-3.5C5 .56 5.56 0 6.25 0zM2.5 14.5h3v-3h-3zm8 0h3v-3h-3zm-4-10h3v-3h-3z"
                />
            </svg>
        );
    }
);
