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/client/views/admin/sidebar/AdminSidebarPages.tsx

20 lines
627 B

import { Box } from '@rocket.chat/fuselage';
import React, { memo, FC } from 'react';
import { useSubscription } from 'use-subscription';
import Sidebar from '../../../components/Sidebar';
import { itemsSubscription } from '../sidebarItems';
type AdminSidebarPagesProps = {
currentPath: string;
};
const AdminSidebarPages: FC<AdminSidebarPagesProps> = ({ currentPath }) => {
const items = useSubscription(itemsSubscription);
return <Box display='flex' flexDirection='column' flexShrink={0} pb='x8'>
<Sidebar.ItemsAssembler items={items} currentPath={currentPath}/>
</Box>;
};
export default memo(AdminSidebarPages);