The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/views/admin/sidebar/AdminSidebarPages.tsx

21 lines
697 B

import { Box } from '@rocket.chat/fuselage';
import { memo, useSyncExternalStore } from 'react';
import SidebarItemsAssembler from '../../../components/Sidebar/SidebarItemsAssembler';
import { subscribeToAdminSidebarItems, getAdminSidebarItems } from '../sidebarItems';
type AdminSidebarPagesProps = {
currentPath: string;
};
const AdminSidebarPages = ({ currentPath }: AdminSidebarPagesProps) => {
const items = useSyncExternalStore(subscribeToAdminSidebarItems, getAdminSidebarItems);
return (
<Box display='flex' flexDirection='column' flexShrink={0} pb={8}>
<SidebarItemsAssembler items={items} currentPath={currentPath} />
</Box>
);
};
export default memo(AdminSidebarPages);