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

// ../src/components/quote/quote.tsx
import { jsx } from "preact/jsx-runtime";
var Quote = ({ bodyHtml, theme = "nyheter", classNames, attributes, forcePx }) => {
  const componentClassName = "ds-quote";
  const classes = formatClassString([componentClassName, `ds-theme--${theme}`, forcePx && "ds-force-px", classNames]);
  const quoteHtml = `<span class="${componentClassName}__border"></span> ${bodyHtml}`;
  return /* @__PURE__ */ jsx("blockquote", { dangerouslySetInnerHTML: { __html: quoteHtml }, className: classes, ...attributes });
};
export {
  Quote
};
//# sourceMappingURL=quote.js.map
