@embedreach/components 0.3.29 → 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,18 +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 renderButton = () => {
119141
- return /* @__PURE__ */ jsx(
119142
- Button$1,
119143
- {
119144
- size: "sm",
119145
- onClick: onEnable,
119146
- disabled: isEnabling || !canEditAutomation,
119147
- className: "bg-amber-600 hover:bg-amber-700 text-white ml-4 shrink-0",
119148
- children: isEnabling ? "Enabling..." : `Enable ${channelType === "email" ? "Email" : "SMS"}`
119149
- }
119150
- );
119151
- };
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
+ );
119152
119150
  return /* @__PURE__ */ jsx("div", { className: "px-4 w-full", children: /* @__PURE__ */ jsx("div", { className: "max-w-2xl mx-auto", children: /* @__PURE__ */ jsx(
119153
119151
  "div",
119154
119152
  {
@@ -119171,13 +119169,13 @@ const ChannelDisabledWarning = ({
119171
119169
  /* @__PURE__ */ jsx("h5", { className: "text-sm font-medium mb-1", children: title2 || defaultTitle }),
119172
119170
  /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: description2 || defaultDescription })
119173
119171
  ] }),
119174
- onEnable && /* @__PURE__ */ jsx(Fragment$1, { children: canEditAutomation ? renderButton() : /* @__PURE__ */ jsx(
119172
+ onEnable && /* @__PURE__ */ jsx(Fragment$1, { children: canEditAutomation ? button : /* @__PURE__ */ jsx(
119175
119173
  InfoTooltip,
119176
119174
  {
119177
- alertText: "You can only edit the content if we are in the draft state.",
119175
+ alertText: "You can only change the channel if you are in the draft state.",
119178
119176
  asChild: true,
119179
119177
  className: "cursor-not-allowed",
119180
- children: renderButton()
119178
+ children: button
119181
119179
  }
119182
119180
  ) })
119183
119181
  ] }) })
@@ -120071,7 +120069,7 @@ const AutomationEditorSMSPreview = ({
120071
120069
  return canEdit ? button : /* @__PURE__ */ jsx(
120072
120070
  InfoTooltip,
120073
120071
  {
120074
- 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.",
120075
120073
  asChild: true,
120076
120074
  className: "cursor-not-allowed",
120077
120075
  children: /* @__PURE__ */ jsx("div", { className: "inline-block cursor-not-allowed", children: button })