// ../src/helpers/formatClassString.ts
var formatClassString = (classesArray) => {
  return classesArray.filter((x) => !!x).join(" ");
};

// ../src/components/divider/divider.tsx
import { jsx } from "preact/jsx-runtime";
var Divider = ({ variant = "soft", classNames, attributes }) => {
  const classes = formatClassString(["ds-divider", `ds-divider--${variant}`, classNames]);
  return /* @__PURE__ */ jsx("div", { className: classes, ...attributes, children: /* @__PURE__ */ jsx("hr", {}) });
};
var divider_default = Divider;
export {
  Divider,
  divider_default as default
};
//# sourceMappingURL=divider.js.map
