--- import { LinkButton } from "@astrojs/starlight/components"; import DraftContentNotice from "@astrojs/starlight/components/DraftContentNotice.astro"; const { data } = Astro.locals.starlightRoute.entry; const { title = data.title, tagline, image, actions = [] } = data.hero || {}; const imageAttrs = { loading: "eager" as const, decoding: "async" as const, alt: image?.alt || "", }; let darkImage: ImageMetadata | undefined; let lightImage: ImageMetadata | undefined; let rawHtml: string | undefined; if (image) { if ("file" in image) { darkImage = image.file; } else if ("dark" in image) { darkImage = image.dark; lightImage = image.light; } else { rawHtml = image.html; } } ---