Leave all unticked for every event.
{events.map(ev => (
))}
{events.length === 0 &&
No events.
}
{scopedEvents.length > 0 && (
Leave all unticked to discount the whole registration.
{scopedEvents.map(ev => (
))}
)}
{d.restrictTo !== "anyone" && (
Restricted codes need the person to be logged in (or registered by staff), so they can't be shared in group chats.
)}
{d.restrictTo === "roles" && (
{(["user", "staff", "supervisor", "admin"] as Role[]).map(r => (
))}
)}
{d.restrictTo === "domain" && (
set("restrictDomain", e.target.value)} placeholder="church.org" required />
)}
{d.restrictTo === "users" && (
{d.users.map(u => (
{u.name}
))}
setUserQuery(e.target.value)} placeholder="Search by name, email or phone" />
{userResults.length > 0 && (
{userResults.filter(r => !d.users.some(u => u.id === r.id)).map(r => (
))}
)}
)}
{error &&
{error}
}