{
heroImage && (
)
}
--- import type { CollectionEntry } from "astro:content"; import BaseHead from "@/components/BaseHead.astro"; import Footer from "@/components/Footer/Footer.astro"; import FormattedDate from "@/components/FormattedDate.astro"; import Header from "@/components/Header/Header.astro"; import ContactForm from "@/components/ContactForm/ContactForm.astro"; import { getLangFromUrl, useTranslations } from "@/i18n/utils"; import { Image } from "astro:assets"; import "@/styles/index.css"; type Props = CollectionEntry<"blog">["data"]; const { title, description, pubDate, updatedDate, heroImage } = Astro.props; const lang = getLangFromUrl(Astro.url); const t = useTranslations(lang); ---