+
+
+
{current().title}
+
{formatWindow(current().starts_at, current().ends_at)}
+
+
+
+
+
+
+
+ {current().description}
+
+
+
+
+
+
+
+ Attendance
+
+
+ {(status) => (
+
+ )}
+
+
+
+
+
+
+
+
+ }>
+ Nobody marked yet.}>
+
+
+
+
+ | User |
+ Status |
+
+ |
+
+
+
+
+
+ {(entry) => (
+
+ |
+ {entry.user === user()?.id ? "you" : entry.user}
+ |
+
+ {entry.status}
+ |
+
+
+
+ |
+
+
+ )}
+
+
+
+
+
+
+
+
+ )}
+
+ );
+}
+
+function NotFoundMessage(props: { error: unknown }) {
+ const message =
+ props.error instanceof ApiError && props.error.status === 404
+ ? "This event does not exist."
+ : "Failed to load the event.";
+ return