diff --git a/packages/client/src/plugin-manager/PluginManager.tsx b/packages/client/src/plugin-manager/PluginManager.tsx
index 56a119ee9..e2af0f622 100644
--- a/packages/client/src/plugin-manager/PluginManager.tsx
+++ b/packages/client/src/plugin-manager/PluginManager.tsx
@@ -1,53 +1,71 @@
-import React, { createContext } from 'react';
-import { Menu, Space } from 'antd';
+import React, { createContext, useContext } from 'react';
+import { Menu, Space, Tooltip } from 'antd';
import { SettingOutlined, MoreOutlined, DesktopOutlined } from '@ant-design/icons';
import { CurrentUser, DesignableSwitch, CollectionManagerAction, ACLAction, SystemSettings } from '../';
import { get } from 'lodash';
-import { PluginManagerProvider } from '.';
+import { PluginManagerContext, PluginManagerProvider } from '.';
-export const PluginManager = () => null;
+// TODO
+export const PluginManager: any = () => null;
PluginManager.Provider = PluginManagerProvider;
+const ToolbarItemContext = createContext(null);
+
PluginManager.Toolbar = (props: any) => {
- const components = { CurrentUser, DesignableSwitch, CollectionManagerAction, ACLAction, SystemSettings };
- const items = [
- {
- action: 'DesignableSwitch',
- pin: true,
- },
- {
- action: 'CollectionManagerAction',
- pin: true,
- },
- {
- action: 'ACLAction',
- pin: true,
- },
- {
- action: 'SystemSettings.Action',
- },
- ];
- const CurrentUserDropdown = get(components, 'CurrentUser.Dropdown');
+ const { components } = useContext(PluginManagerContext);
+ const { items = [] } = props;
return (
-