+
+ Your private Slack support channel
+ {supportChannel.slackChannelName ? ` #${supportChannel.slackChannelName}` : ""} is
+ ready.
+ {supportChannel.status === "INVITED" && supportChannel.invitedEmail
+ ? ` We've sent a Slack Connect invite to ${supportChannel.invitedEmail}.`
+ : ""}
+
+ {/* While INVITED the owner has not joined yet, so the deep link
+ would 404 for them — offer the Slack Connect invite instead.
+ The channel id is always set by then, so ordering matters. */}
+ {supportChannel.status === "INVITED" && supportChannel.inviteUrl ? (
+
+ Join the channel
+
+ ) : supportChannel.slackChannelId ? (
+
+ Open in Slack
+
+ ) : null}
+
+ ) : supportChannel?.status === "PROVISIONING" ? (
+