// interface PluginRegistry {}
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "installExtension", {
    enumerable: true,
    get: function() {
        return installExtension;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _pluginContext = require("./pluginContext");
const _registry = require("./registry");
const installExtension = (options)=>{
    return (component)=>{
        const registry = _registry.OrderlyExtensionRegistry.getInstance();
        registry.register({
            name: options.name,
            positions: options.positions,
            __isInternal: !!options.__isInternal,
            render: (props)=>{
                ;
                const children = typeof component === "function" ? component(props) : component;
                return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginContext.ExtensionProvider, {
                    children: children
                });
            }
        });
    };
};

//# sourceMappingURL=install.js.map