+ {[
+ {
+ text: 'Databases',
+ name: 'databases',
+ icon: '/icons/menu/database-gray.svg',
+ selectedIcon: '/icons/menu/database-white.svg',
+ onClick: () => setSelectedTab('databases'),
+ isAdminOnly: false,
+ marginTop: '0px',
+ isVisible: true,
+ },
+ {
+ text: 'Storages',
+ name: 'storages',
+ icon: '/icons/menu/storage-gray.svg',
+ selectedIcon: '/icons/menu/storage-white.svg',
+ onClick: () => setSelectedTab('storages'),
+ isAdminOnly: false,
+ marginTop: '0px',
+ isVisible: !!selectedWorkspace,
+ },
+ {
+ text: 'Notifiers',
+ name: 'notifiers',
+ icon: '/icons/menu/notifier-gray.svg',
+ selectedIcon: '/icons/menu/notifier-white.svg',
+ onClick: () => setSelectedTab('notifiers'),
+ isAdminOnly: false,
+ marginTop: '0px',
+ isVisible: !!selectedWorkspace,
+ },
+ {
+ text: 'Settings',
+ name: 'settings',
+ icon: '/icons/menu/workspace-settings-gray.svg',
+ selectedIcon: '/icons/menu/workspace-settings-white.svg',
+ onClick: () => setSelectedTab('settings'),
+ isAdminOnly: false,
+ marginTop: '0px',
+ isVisible: !!selectedWorkspace,
+ },
+ {
+ text: 'Profile',
+ name: 'profile',
+ icon: '/icons/menu/profile-gray.svg',
+ selectedIcon: '/icons/menu/profile-white.svg',
+ onClick: () => setSelectedTab('profile'),
+ isAdminOnly: false,
+ marginTop: '25px',
+ isVisible: true,
+ },
+ {
+ text: 'Postgresus settings',
+ name: 'postgresus-settings',
+ icon: '/icons/menu/global-settings-gray.svg',
+ selectedIcon: '/icons/menu/global-settings-white.svg',
+ onClick: () => setSelectedTab('postgresus-settings'),
+ isAdminOnly: true,
+ marginTop: '0px',
+ isVisible: true,
+ },
+ {
+ text: 'Users',
+ name: 'users',
+ icon: '/icons/menu/user-card-gray.svg',
+ selectedIcon: '/icons/menu/user-card-white.svg',
+ onClick: () => setSelectedTab('users'),
+ isAdminOnly: true,
+ marginTop: '0px',
+ isVisible: true,
+ },
+ ]
+ .filter((tab) => !tab.isAdminOnly || user?.role === UserRole.ADMIN)
+ .filter((tab) => tab.isVisible)
+ .map((tab) => (
+
+
+
+
+

+
+
-