src/app.ts
Props, state and actions
Props are{ title, startsAt?, location?, capacity? } (capacity a positive integer). State is
{ going, maybe, declined, closed }. Answers are a viewer input named
rsvp with the values going, maybe and declined.
The organizer section (the declined count) and the Close RSVPs button both use
audience="creator",
so only the member who added the block sees them. With a capacity, a progress bar labelled spots
(“Spots taken”) shows how full the event is, and Reintersect writes its text, such as “12 of 24”.
Labels
question, going, maybe, declined, spots, full, organizer, close, confirmTitle,
confirmBody, closed, summary.