'use client'; import { Flex, Theme } from '@radix-ui/themes'; import '@radix-ui/themes/styles.css'; import { config } from 'dotenv'; import { Roboto_Flex } from 'next/font/google'; import { usePathname } from 'next/navigation'; import { ReactNode, Suspense } from 'react'; import { Footer } from '../components/Footer'; 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'; config(); interface RootLayoutProps { children: ReactNode; } const robotoFlex = Roboto_Flex({ subsets: ['latin'], display: 'swap', variable: '--font-roboto-flex', }); export default function RootLayout({ children }: RootLayoutProps) { const pathname = usePathname(); const hideNav = false; const isRoot = pathname === '/'; const isBranchNamed = process.env.NEXT_PUBLIC_ASSET_BRANCH && BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH]; return ( {isRoot && ( <> BlitzKit )} {!hideNav && } }>{children} {!hideNav &&