--- import BaseLayout from './BaseLayout.astro'; import PageHero from '../components/PageHero.astro'; import { getPublication } from '../utils/publication'; interface Props { title: string; heading?: string; description: string; intro?: string[]; lang?: 'en' | 'ar' | 'es'; } const { title, heading, description, intro = [], lang = 'en' } = Astro.props; const { entry } = await getPublication(Astro.url.pathname); --- Library {intro.length ? intro.map((paragraph) => {paragraph}) : {description}}
{paragraph}
{description}