import { jsxs as n, jsx as r } from "react/jsx-runtime";
import { ap as d } from "./chunk-3RDGTRSB.DySNCMmQ.js";
import "@sinclair/typebox";
import { _ as i } from "./twind.D7be0E5m.js";
import { b as f } from "./use-section-style.CihCUEtb.js";
import { a as u } from "./iconify.Bxbp05s7.js";
import { u as y } from "./use-color-preset.BrT8DcA1.js";
import { B as h } from "./BrickRoot.C1PanknS.js";
function B({ brick: t, editable: s }) {
  const l = f(t), { props: a } = t, m = y(t), o = Array.isArray(a.links) ? a.links : [];
  return /* @__PURE__ */ n(
    h,
    {
      manifest: d,
      className: i("flex justify-start items-start gap-2", Object.values(l), m.main),
      children: [
        s && o.length === 0 && /* @__PURE__ */ r("div", { className: "flex items-center justify-center p-4 border-2 border-dashed border-gray-300 dark:border-gray-600 rounded-md", children: /* @__PURE__ */ r("span", { className: "text-sm text-gray-500 dark:text-gray-400", children: "Add social links to get started" }) }),
        o.map((e, c) => /* @__PURE__ */ n(
          "a",
          {
            href: e.href,
            "data-prevented-by-editor": s ? "true" : "false",
            onClick: (p) => {
              s && p.preventDefault();
            },
            className: i("grow flex items-center gap-0.5 hover:opacity-80"),
            title: e.label || e.href,
            children: [
              e.icon && /* @__PURE__ */ r(u, { icon: e.icon, className: "text-[100%]" }),
              !a.icononly && e.label && /* @__PURE__ */ r("span", { className: "ml-1 text-nowrap", children: e.label })
            ]
          },
          c
        ))
      ]
    }
  );
}
export {
  B as default
};
//# sourceMappingURL=social-links.C6FJn0Lt.js.map
