import { Box, IconButton } from '@rocket.chat/fuselage'; import { useTranslation } from '@rocket.chat/ui-contexts'; import type { FC, ReactNode } from 'react'; import React from 'react'; type HeaderProps = { title?: ReactNode; onClose?: () => void; }; const Header: FC = ({ title, onClose, children, ...props }) => { const t = useTranslation(); return ( {(title || onClose) && ( {title && ( {title} )} {onClose && } )} {children} ); }; export default Header;