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