--- import Avatar from './Avatar.astro' import people from '@data/people.json' import { requireIndex } from '@shared/lib/array' interface Props { toastId?: string show?: boolean cookies?: boolean text?: string } const { toastId = 'simple', show, cookies, text = 'Hello, world! This is a toast message.' } = Astro.props interface Person { full_name?: string photo?: string [key: string]: unknown } const date = '11 mins ago' /** people index, 0-based (default 2 → Mallory Hulme) */ const person = requireIndex(people as Person[], 2) ---