+
+ Slack integration
+
+
+ {slackChannelSelected.length === 0 ? (
+ <>
+ Set as default assistant for specific channels.
+ >
+ ) : (
+ <>
+ Default assistant for{" "}
+ {slackChannelSelected
+ .map((c) => c.slackChannelName)
+ .join(", ")}
+ >
+ )}
+
-
{slackChannelSelected.length > 0 && (
-
+
+ 0}
+ onClick={() => {
+ if (slackChannelSelected.length > 0) {
+ setNewLinkedSlackChannels([]);
+ } else {
+ setSlackDrawerOpened(true);
+ }
+ }}
+ />
+