--- import { SITE_METADATA } from "@root/config"; import { useTranslation } from "@i18n/utils"; export interface Props { title?: string | undefined; description?: string | undefined; canonicalUrl?: string | undefined; } const t = useTranslation(Astro); const { title = SITE_METADATA.title, description, canonicalUrl } = Astro.props as Props; --- {canonicalUrl && } {title}