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

27 lines
606 B

import React from 'react';
import { useTranslation } from '../../hooks/useTranslation';
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'>{rawSectionName || t(sectionName)}</span>
{children}
{!hideHelp && <div className='rc-header__section-help' />}
</div>
</header>;
}