Add members Β· {selected.length} selected
{selected.length > 0 && (
{selected.map((id) => {
const u = users.find((x) => x.id === id);
if (!u) return null;
return (
{u.name}
);
})}
)}
setQ(e.target.value)} placeholder="Search people to addβ¦" className={inputCls} />
{candidates.map((u) => (
))}
{candidates.length === 0 &&
No people match β{q}β.
}
) : (