@embedreach/components 0.3.28 → 0.3.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119137,6 +119137,16 @@ const ChannelDisabledWarning = ({
119137
119137
  const defaultDescription = `Enable the ${channelType} channel to send messages.`;
119138
119138
  const automation2 = useAutomation();
119139
119139
  const canEditAutomation = automation2?.status === AutomationStatus.DRAFT;
119140
+ const button = /* @__PURE__ */ jsx(
119141
+ Button$1,
119142
+ {
119143
+ size: "sm",
119144
+ onClick: onEnable,
119145
+ disabled: isEnabling || !canEditAutomation,
119146
+ className: "bg-amber-600 hover:bg-amber-700 text-white ml-4 shrink-0",
119147
+ children: isEnabling ? "Enabling..." : `Enable ${channelType === "email" ? "Email" : "SMS"}`
119148
+ }
119149
+ );
119140
119150
  return /* @__PURE__ */ jsx("div", { className: "px-4 w-full", children: /* @__PURE__ */ jsx("div", { className: "max-w-2xl mx-auto", children: /* @__PURE__ */ jsx(
119141
119151
  "div",
119142
119152
  {
@@ -119159,16 +119169,15 @@ const ChannelDisabledWarning = ({
119159
119169
  /* @__PURE__ */ jsx("h5", { className: "text-sm font-medium mb-1", children: title2 || defaultTitle }),
119160
119170
  /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: description2 || defaultDescription })
119161
119171
  ] }),
119162
- onEnable && /* @__PURE__ */ jsx(
119163
- Button$1,
119172
+ onEnable && /* @__PURE__ */ jsx(Fragment$1, { children: canEditAutomation ? button : /* @__PURE__ */ jsx(
119173
+ InfoTooltip,
119164
119174
  {
119165
- size: "sm",
119166
- onClick: onEnable,
119167
- disabled: isEnabling || !canEditAutomation,
119168
- className: "bg-amber-600 hover:bg-amber-700 text-white ml-4 shrink-0",
119169
- children: isEnabling ? "Enabling..." : `Enable ${channelType === "email" ? "Email" : "SMS"}`
119175
+ alertText: "You can only change the channel if you are in the draft state.",
119176
+ asChild: true,
119177
+ className: "cursor-not-allowed",
119178
+ children: button
119170
119179
  }
119171
- )
119180
+ ) })
119172
119181
  ] }) })
119173
119182
  ] })
119174
119183
  }
@@ -120060,7 +120069,7 @@ const AutomationEditorSMSPreview = ({
120060
120069
  return canEdit ? button : /* @__PURE__ */ jsx(
120061
120070
  InfoTooltip,
120062
120071
  {
120063
- alertText: "You can only edit the content if we are in the draft state.",
120072
+ alertText: "You can only edit the content if you are in the draft state.",
120064
120073
  asChild: true,
120065
120074
  className: "cursor-not-allowed",
120066
120075
  children: /* @__PURE__ */ jsx("div", { className: "inline-block cursor-not-allowed", children: button })