'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 } from 'react'; import Navbar from '../components/Navbar'; config(); interface RootLayoutProps { children: ReactNode; } const robotoFlex = Roboto_Flex({ subsets: ['latin'], display: 'swap', }); export default function RootLayout({ children }: RootLayoutProps) { const pathname = usePathname(); const isEmbed = pathname.split('/')[1] === 'embeds'; return ( Blitzkrieg {!isEmbed && } {children} ); }