diff --git a/src/app/layout.tsx b/src/app/layout.tsx index de82b67cf..e9c06167c 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -11,6 +11,7 @@ import Navbar from '../components/Navbar'; import { Party3 } from '../components/Party3'; import * as App from '../stores/app'; import { Checks } from './components/Checks'; +import { BRANCH_NAMES } from './components/Hero/constants'; import { PageLoader } from './components/PageLoader'; import './layout.css'; @@ -28,11 +29,11 @@ const robotoFlex = Roboto_Flex({ export default function RootLayout({ children }: RootLayoutProps) { const pathname = usePathname(); - // const hideNav = - // pathname.startsWith('/tools/embed/host') || - // pathname.startsWith('/tools/embed/customize'); const hideNav = false; const isRoot = pathname === '/'; + const isBranchNamed = + process.env.NEXT_PUBLIC_ASSET_BRANCH && + BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH]; return ( @@ -40,7 +41,12 @@ export default function RootLayout({ children }: RootLayoutProps) { {isRoot && ( <> - BlitzKit + + BlitzKit + {isBranchNamed + ? ` ${BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH!]}` + : ''} +