--- import Avatar from '@ui/Avatar.astro' import { people } from '@shared/lib/people' import { requireIndex } from '@shared/lib/array' interface Props { toastId: string show?: boolean cookies?: boolean text?: string } const { toastId, show, cookies, text = 'Hello, world! This is a toast message.' } = Astro.props const date = '11 mins ago' /** people index, 0-based */ const person = requireIndex(people, 2) ---