--- import { Image } from "@astrojs/image/components"; import config from "@config/config.json"; const { src, srcDarkmode } = 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 ? ( <> {title} {theme_switcher && ( {title} )} ) : logo_text ? ( logo_text ) : ( title ) }