2021-12-14 19:14:53 +00:00
|
|
|
import { PropsWithChildren } from 'react';
|
|
|
|
|
2022-09-22 01:39:36 +00:00
|
|
|
import { ContextHelp } from '@@/PageHeader/ContextHelp';
|
|
|
|
|
2021-12-30 15:46:12 +00:00
|
|
|
import { useHeaderContext } from './HeaderContainer';
|
2022-09-23 05:17:44 +00:00
|
|
|
import { NotificationsMenu } from './NotificationsMenu';
|
2022-08-29 02:07:07 +00:00
|
|
|
import { UserMenu } from './UserMenu';
|
2021-12-14 19:14:53 +00:00
|
|
|
|
|
|
|
interface Props {
|
|
|
|
title: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function HeaderTitle({ title, children }: PropsWithChildren<Props>) {
|
|
|
|
useHeaderContext();
|
|
|
|
|
|
|
|
return (
|
2022-08-12 03:47:56 +00:00
|
|
|
<div className="flex justify-between whitespace-normal pt-3">
|
|
|
|
<div className="flex items-center gap-2">
|
2022-08-16 15:08:08 +00:00
|
|
|
<div className="font-medium text-2xl text-gray-11 th-dark:text-white th-highcontrast:text-white">
|
2022-08-12 03:47:56 +00:00
|
|
|
{title}
|
|
|
|
</div>
|
|
|
|
{children && <span>{children}</span>}
|
|
|
|
</div>
|
2022-09-23 05:17:44 +00:00
|
|
|
<div className="flex items-end">
|
|
|
|
<NotificationsMenu />
|
2022-09-22 01:39:36 +00:00
|
|
|
<ContextHelp />
|
|
|
|
{!window.ddExtension && <UserMenu />}
|
|
|
|
</div>
|
2021-12-14 19:14:53 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|