--- interface Props { title?: string; description?: string; image?: string; } import { metaData } from "../config"; import { SEO } from "astro-seo"; import { getImagePath } from "astro-opengraph-images"; import { JoyUIRootIsland } from "./Components" import { useHtmlThemeAttr } from "../hooks/useHtmlThemeAttr"; import { usePrimeReactThemeSwitcher } from "../hooks/usePrimeReactThemeSwitcher"; const { title, description = metaData.description, image } = Astro.props; const { url, site } = Astro; const openGraphImageUrl = getImagePath({ url, site }); // If the image is not provided, use the default image const openGraphImage = image ? new URL(image, url.href).href : openGraphImageUrl; ---