--- import config from "@/config/config.json"; import ImageMod from "./ImageMod.astro"; 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; --- { src || srcDarkmode || logo || logo_darkmode ? ( <> {theme_switcher && ( )} ) : logo_text ? ( logo_text ) : ( title ) }