+ {(isCancelled || reschedule) && cancellationReason && (
<>
-
-
- {t("need_to_make_a_change")}
-
-
- {!props.recurringBookings && (
-
-
-
- {t("reschedule")}
-
-
- {t("or_lowercase")}
-
+
+ {isCancelled ? t("reason") : t("reschedule_reason_success_page")}
+
+
{cancellationReason}
+ >
+ )}
+
{t("what")}
+
{eventName}
+
{t("when")}
+
+ {reschedule && !!formerTime && (
+
+
+
+ )}
+
+
+ {(bookingInfo?.user || bookingInfo?.attendees) && (
+ <>
+
{t("who")}
+
+ <>
+ {bookingInfo?.user && (
+
+
{bookingInfo.user.name}
+
{bookingInfo.user.email}
+
+ )}
+ {bookingInfo?.attendees.map((attendee) => (
+
+ {attendee.name &&
{attendee.name}
}
+
{attendee.email}
+
+ ))}
+ >
+
+ >
+ )}
+ {locationToDisplay && (
+ <>
+
{t("where")}
+
+ {locationToDisplay.startsWith("http") ? (
+
+ {locationToDisplay}
+
+ ) : (
+ locationToDisplay
)}
-
-
-
- >
- ) : (
- <>
-
-
- >
- ))}
- {userIsOwner &&
- !needsConfirmation &&
- !isCancellationMode &&
- !isCancelled &&
- calculatedDuration && (
- <>
-
-
-
- {t("add_to_calendar")}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
>
)}
- {session === null && !(userIsOwner || props.hideBranding) && (
+ {bookingInfo?.description && (
+ <>
+
{t("additional_notes")}
+
+
{bookingInfo.description}
+
+ >
+ )}
+ {customInputs &&
+ Object.keys(customInputs).map((key) => {
+ // This breaks if you have two label that are the same.
+ // TODO: Fix this in another PR
+ const customInput = customInputs[key as keyof typeof customInputs];
+ const eventTypeCustomFound = eventType.customInputs?.find((ci) => ci.label === key);
+ return (
+ <>
+ {eventTypeCustomFound?.type === "RADIO" && (
+ <>
+
+ {eventTypeCustomFound.label}
+
+
+ {eventTypeCustomFound.options &&
+ eventTypeCustomFound.options.map((option) => {
+ const selected = option.label == customInput;
+ return (
+
+
{option.label}
+
{option.label === customInput && "✅"}
+
+ );
+ })}
+
+ >
+ )}
+ {eventTypeCustomFound?.type !== "RADIO" && customInput !== "" && (
+ <>
+
{key}
+
+ {typeof customInput === "boolean" ? (
+
{customInput ? "true" : "false"}
+ ) : (
+
{customInput}
+ )}
+
+ >
+ )}
+ >
+ );
+ })}
+ {bookingInfo?.smsReminderNumber && hasSMSAttendeeAction && (
+ <>
+
{t("number_sms_notifications")}
+
+
{bookingInfo.smsReminderNumber}
+
+ >
+ )}
+