--- // selected ids "5,6,2,3" → people[id-1]. import people from '@data/people.json' import FormGroup from '@ui/FormGroup.astro' import { requireIndex } from '@shared/lib/array' interface Person { id: string full_name: string } const selectedPeople = ['5', '6', '2', '3'].map((idStr) => requireIndex(people as Person[], Number(idStr) - 1)) ---