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

22 lines
564 B

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