import { clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
import { jsx, jsxs } from 'react/jsx-runtime';

// src/lib/utils.ts
function cn(...inputs) {
  return twMerge(clsx(inputs));
}
function MarketingNewsletter({
  title,
  description,
  form,
  disclaimer,
  layout = "centered",
  className
}) {
  if (layout === "split") {
    return /* @__PURE__ */ jsx("section", { className: cn("bg-background py-24 sm:py-32", className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto grid max-w-7xl items-center gap-12 px-6 lg:grid-cols-2 lg:gap-16 lg:px-8", children: [
      /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
        /* @__PURE__ */ jsx("h2", { className: "text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-4xl", children: title }),
        description ? /* @__PURE__ */ jsx("p", { className: "text-pretty text-lg text-muted-foreground", children: description }) : null
      ] }),
      /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
        form,
        disclaimer ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: disclaimer }) : null
      ] })
    ] }) });
  }
  return /* @__PURE__ */ jsx("section", { className: cn("bg-background py-24 sm:py-32", className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-2xl flex-col items-center gap-6 px-6 text-center lg:px-8", children: [
    /* @__PURE__ */ jsx("h2", { className: "text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-4xl", children: title }),
    description ? /* @__PURE__ */ jsx("p", { className: "text-pretty text-lg text-muted-foreground", children: description }) : null,
    /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-md flex-col gap-3", children: [
      form,
      disclaimer ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: disclaimer }) : null
    ] })
  ] }) });
}

export { MarketingNewsletter };
//# sourceMappingURL=marketing-newsletter.js.map
//# sourceMappingURL=marketing-newsletter.js.map