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 MarketingContact({
  title,
  form,
  description,
  eyebrow,
  details,
  layout = "split",
  className
}) {
  const heading = /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
    eyebrow ? /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold uppercase tracking-wide text-primary", children: eyebrow }) : null,
    /* @__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
  ] });
  if (layout === "stacked") {
    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 gap-8 px-6 lg:px-8", children: [
      heading,
      details ? /* @__PURE__ */ jsx("div", { children: details }) : null,
      /* @__PURE__ */ jsx("div", { children: form })
    ] }) });
  }
  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 gap-12 px-6 lg:grid-cols-2 lg:gap-16 lg:px-8", children: [
    /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
      heading,
      details ? /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: details }) : null
    ] }),
    /* @__PURE__ */ jsx("div", { children: form })
  ] }) });
}

export { MarketingContact };
//# sourceMappingURL=marketing-contact.js.map
//# sourceMappingURL=marketing-contact.js.map