import { useEffect, useState } from "react"; import { Link } from "react-router-dom"; import SiteHero from "@/components/site/SiteHero"; import { HexPatternBg, PlaceholderMedia, } from "@/components/site/PlaceholderMedia"; import { INTL } from "@/config/intlAssets"; import { contentApi } from "@/services"; const FALLBACK_MEMBERS = [ { id: 1, name: "Gordon Guyatt", org: "McMaster University, Canada" }, { id: 2, name: "Gordon Guyatt", org: "McMaster University, Canada" }, { id: 3, name: "Gordon Guyatt", org: "McMaster University, Canada" }, { id: 4, name: "Gordon Guyatt", org: "McMaster University, Canada" }, ]; export default function PeoplePage() { const [members, setMembers] = useState(FALLBACK_MEMBERS); useEffect(() => { let alive = true; contentApi .listProfessors({ limit: 8 }) .then((res) => { if (!alive) return; const list = res?.results || []; if (list.length) { setMembers( list.slice(0, 4).map((p) => ({ id: p.id, name: p.name || p.name_en || "Member", org: p.organization_name || p.title || "Affiliation", logo: p.logo, })), ); } }) .catch(() => {}); return () => { alive = false; }; }, []); return (
{/* Mission & Vision */}
Mission & Vision

— Mission

Promote trustworthy, transparent, and applicable clinical practice guidelines through rigorous evaluation and open collaboration. Placeholder mission text for redesign preview.

— Vision

A world where guideline users can quickly identify recommendations worth applying. Placeholder vision text for redesign preview.

{/* Advisory Committees */}

Advisory Committees

{members.map((m) => (
{m.logo ? ( {m.name} ) : ( )}
{m.name}

{m.org}

))}
View team members
); }