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/client/components/header/Header.js

35 lines
930 B

import { Box } from '@rocket.chat/fuselage';
import React from 'react';
import { useTranslation } from '../../contexts/TranslationContext';
import { BurgerMenuButton } from './BurgerMenuButton';
export function Header({
children,
hideHelp,
rawSectionName,
sectionName,
}) {
const t = useTranslation();
return <header className='rc-header'>
<div className='rc-header__wrap'>
<div className='rc-header__block rc-header--burger'>
<BurgerMenuButton />
</div>
<span className='rc-header__block'>
<Box is='h1' textStyle='h1' textColor='default'>
{rawSectionName || t(sectionName)}
</Box>
</span>
{children}
{!hideHelp && <div className='rc-header__section-help' />}
</div>
</header>;
}
Header.ActionBlock = (props) => <div className='rc-header__block rc-header__block-action' {...props} />;
Header.ButtonSection = (props) => <div className='rc-header__section-button' {...props} />;