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/components/Header/HeaderToolbar.tsx

22 lines
580 B

import {
FeaturePreview,
FeaturePreviewOff,
FeaturePreviewOn,
HeaderV2Toolbar,
HeaderToolbar as HeaderToolbarComponent,
} from '@rocket.chat/ui-client';
import type { ComponentProps } from 'react';
import { memo } from 'react';
const HeaderToolbar = (props: ComponentProps<typeof HeaderToolbarComponent>) => (
<FeaturePreview feature='newNavigation'>
<FeaturePreviewOff>
<HeaderToolbarComponent {...props} />
</FeaturePreviewOff>
<FeaturePreviewOn>
<HeaderV2Toolbar {...props} />
</FeaturePreviewOn>
</FeaturePreview>
);
export default memo(HeaderToolbar);