diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx
index 69c7847e9..402ab0687 100644
--- a/src/components/Layout.tsx
+++ b/src/components/Layout.tsx
@@ -12,6 +12,7 @@ import { useEffect, useState } from 'react';
import { LogoMark } from './LogoMark';
import { Search } from './search/Search';
import VersionSelector from './VersionSelector';
+import { TopBanner } from './TopBanner';
function GitHubIcon(props: React.ComponentPropsWithoutRef<'svg'>) {
return (
@@ -24,6 +25,10 @@ function GitHubIcon(props: React.ComponentPropsWithoutRef<'svg'>) {
function Header() {
let [isScrolled, setIsScrolled] = useState(false);
+ const pathname = usePathname();
+ const isCodyDocs = pathname.includes('/cody');
+ const isopenCtxDocs = pathname.includes('/cody/capabilities/openctx');
+
useEffect(() => {
function onScroll() {
setIsScrolled(window.scrollY > 0);
@@ -37,87 +42,17 @@ function Header() {
return (