import { Container, Flex, Link } from "@chakra-ui/react"; import { getConfig } from "../lib/edgeConfig"; import NextLink from "next/link"; import Image from "next/image"; import About from "../(aboutAndPrivacy)/about"; import Privacy from "../(aboutAndPrivacy)/privacy"; import UserInfo from "../(auth)/userInfo"; import { RECORD_A_MEETING_URL } from "../api/urls"; export default async function AppLayout({ children, }: { children: React.ReactNode; }) { const config = await getConfig(); const { requireLogin, privacy, browse, rooms } = config.features; return ( {/* Logo on the left */} Reflector

Reflector

Capture the signal, not the noise

{/* Text link on the right */} Create {browse ? ( <>  ·  Browse ) : ( <> )} {rooms ? ( <>  ·  Rooms ) : ( <> )} {requireLogin ? ( <>  ·  ) : ( <> )}
{children}
); }