export function getHostContainerCompat(getDashboardMenuPlugins, getDashboardPlugins) {
    return (containerId) => ({
        getExtensions: () => {
            const extensions = [];
            try {
                const dashboardMenuPlugins = getDashboardMenuPlugins(containerId).map((item) => ({
                    ...item,
                    componentId: item.id,
                    menuItem: {
                        IconComponent: item.IconComponent,
                        IconSmallComponent: item.IconSmallComponent,
                        structuredAction: item.action,
                        subtitle: item.subtitle,
                    },
                }));
                extensions.push(...dashboardMenuPlugins);
            }
            catch (error) { }
            try {
                const dashboardPlugins = getDashboardPlugins(containerId).map((item) => ({
                    ...item,
                    componentId: item.id,
                    Extension: item.Component,
                }));
                extensions.push(...dashboardPlugins);
            }
            catch (error) { }
            return extensions;
        },
    });
}
//# sourceMappingURL=getHostContainer.js.map