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/AdminSidebar.tsx

36 lines
912 B

import { useTranslation, useLayout, useCurrentRoutePath } from '@rocket.chat/ui-contexts';
import { memo } from 'react';
import AdminSidebarPages from './AdminSidebarPages';
import PlanTag from '../../../components/PlanTag';
import Sidebar from '../../../components/Sidebar';
import SettingsProvider from '../../../providers/SettingsProvider';
const AdminSidebar = () => {
const t = useTranslation();
const { sidebar } = useLayout();
const currentPath = useCurrentRoutePath();
// TODO: uplift this provider
return (
<SettingsProvider>
<Sidebar aria-label={t('Administration')}>
<Sidebar.Header
onClose={sidebar.close}
title={
<>
{t('Administration')} <PlanTag />
</>
}
/>
<Sidebar.Content>
<AdminSidebarPages currentPath={currentPath || ''} />
</Sidebar.Content>
</Sidebar>
</SettingsProvider>
);
};
export default memo(AdminSidebar);