--- // person = people[person-id - 1] (default person-id = 25 → people[24]). import Icon from '@ui/Icon.astro' import Flag from '@ui/Flag.astro' import people from '@data/people.json' interface Person { university?: string company?: string city?: string country?: string country_code?: string birth_date?: string time_zone?: string [key: string]: unknown } interface Props { title?: string personId?: number } const { title = 'Basic info', personId = 25 } = Astro.props const person = (people as Person[])[personId - 1] ---
{title}
Went to: {person.university}
Worked at: {person.company}
Lives in: {person.city}, {person.country}
From: {person.country}
Birth date: {person.birth_date}
Time zone: {person.time_zone}