--- import { config } from "../../config"; import ThemeToggle from "./ThemeToggle.astro"; import Search from "./search/Search.svelte"; import SocialIcons from "./SocialIcons.astro"; import { hasSidebar } from "../content-utils"; const { fullWidth = false } = Astro.props; const sidebar = await hasSidebar(); --- { sidebar ? ( ) : ( ) } {config.SEARCH_ENABLED && sidebar ? : null} {config.SHOW_THEME_TOGGLE ? : null}