--- import footerData from '../data/blog-footers.json'; import { articleMessages } from '../utils/article-messages'; interface FooterLink { title: string; href: string; } interface RelatedPost extends FooterLink { image: string; alt: string; } interface FooterData { previous?: FooterLink; next?: FooterLink; related: RelatedPost[]; } const { entryId, lang } = Astro.props as { entryId: string; lang: string }; const text = articleMessages(lang); const footer = (footerData as Record)[entryId]; --- {footer && ( )}