--- import config from "@/config/config.json"; import ImageMod from "./ImageMod.astro"; import { getLangFromUrl, slugSelector } from "@/lib/utils/languageParser"; const { src, srcDarkmode }: { src?: string; srcDarkmode?: string } = Astro.props; const { logo, logo_darkmode, logo_width, logo_height, logo_text, title, }: { logo: string; logo_darkmode: string; logo_width: any; logo_height: any; logo_text: string; title: string; } = config.site; const { theme_switcher }: { theme_switcher: boolean } = config.settings; const { default_language } = config.settings; let lang = getLangFromUrl(Astro.url); const disabledLanguages = config.settings.disable_languages as string[]; if (disabledLanguages.includes(lang)) { lang = default_language; } --- { src || srcDarkmode || logo || logo_darkmode ? ( <> {theme_switcher && ( )} ) : logo_text ? ( logo_text ) : ( title ) }