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 MarketingBento({
  tiles,
  eyebrow,
  title,
  description,
  className
}) {
  const hasHeading = Boolean(eyebrow || title || description);
  return /* @__PURE__ */ jsx("section", { className: cn("bg-background py-24 sm:py-32", className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-7xl px-6 lg:px-8", children: [
    hasHeading ? /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-2xl flex-col items-center gap-4 text-center", children: [
      eyebrow ? /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold uppercase tracking-wide text-primary", children: eyebrow }) : null,
      title ? /* @__PURE__ */ jsx("h2", { className: "text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-4xl", children: title }) : null,
      description ? /* @__PURE__ */ jsx("p", { className: "text-pretty text-lg text-muted-foreground", children: description }) : null
    ] }) : null,
    /* @__PURE__ */ jsx(
      "div",
      {
        className: cn(
          "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4 lg:grid-rows-2",
          hasHeading && "mt-16"
        ),
        children: tiles.map((tile, index) => /* @__PURE__ */ jsxs(
          "div",
          {
            className: cn(
              "flex flex-col gap-4 overflow-hidden rounded-2xl border border-border bg-card p-6 text-card-foreground shadow-sm",
              tile.span === "lg" && "sm:col-span-2 lg:row-span-2"
            ),
            children: [
              tile.media ? /* @__PURE__ */ jsx("div", { className: "flex-1", children: tile.media }) : null,
              /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
                /* @__PURE__ */ jsx("h3", { className: "text-base font-semibold text-foreground", children: tile.title }),
                tile.description ? /* @__PURE__ */ jsx("p", { className: "text-pretty text-sm text-muted-foreground", children: tile.description }) : null
              ] })
            ]
          },
          index
        ))
      }
    )
  ] }) });
}

export { MarketingBento };
//# sourceMappingURL=marketing-bento.js.map
//# sourceMappingURL=marketing-bento.js.map