RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/components/Header/HeaderContentRow.tsx

Summary

Maintainability
A
2 hrs
Test Coverage
import {
    FeaturePreview,
    FeaturePreviewOff,
    FeaturePreviewOn,
    HeaderV2ContentRow,
    HeaderContentRow as HeaderContentRowComponent,
} from '@rocket.chat/ui-client';
import type { ComponentProps } from 'react';
import React, { memo } from 'react';

const HeaderContentRow = (props: ComponentProps<typeof HeaderContentRowComponent>) => (
    <FeaturePreview feature='newNavigation'>
        <FeaturePreviewOff>
            <HeaderContentRowComponent {...props} />
        </FeaturePreviewOff>
        <FeaturePreviewOn>
            <HeaderV2ContentRow {...props} />
        </FeaturePreviewOn>
    </FeaturePreview>
);

export default memo(HeaderContentRow);