feat(askai): hide askAI for CE [BE-11409] (#220)

release/2.25
Ali 2024-12-10 09:11:51 +13:00 committed by GitHub
parent d295968948
commit aac9d001f7
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
import { PropsWithChildren } from 'react';
import { isBE } from '@/react/portainer/feature-flags/feature-flags.service';
import { ContextHelp } from '@@/PageHeader/ContextHelp';
import { useHeaderContext } from './HeaderContainer';
@ -26,7 +28,7 @@ export function HeaderTitle({ title, children }: PropsWithChildren<Props>) {
{children && <>{children}</>}
</div>
<div className="flex items-end">
<AskAILink />
{isBE && <AskAILink />}
<NotificationsMenu />
<ContextHelp />
{!window.ddExtension && <UserMenu />}