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

22 lines
612 B

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