--- // person = people[person-id] (no -1: the object is passed straight to Avatar). import Avatar from '@ui/Avatar.astro' import { people } from '@shared/lib/people' import { requireIndex } from '@shared/lib/array' interface Props { personId?: number right?: boolean } const { personId = 0, right } = Astro.props const person = requireIndex(people, personId) ---
{ !right && (
) }
{person.full_name}
{person.job_title}
{ right && (
) }