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

// ../src/components/link-box/link-box-item.tsx
import { jsx, jsxs } from "preact/jsx-runtime";
function LinkBoxItem({ layout, media, label, link, text, classNames, attributes = {} }) {
  const componentClassName = "ds-link-box-item";
  const classes = formatClassString([componentClassName, layout && `${componentClassName}--${layout}`, classNames]);
  return /* @__PURE__ */ jsxs("a", { href: link, className: classes, ...attributes, children: [
    media && /* @__PURE__ */ jsxs("div", { className: `${componentClassName}__media`, children: [
      " ",
      media,
      " "
    ] }),
    /* @__PURE__ */ jsxs("div", { className: `${componentClassName}__content`, children: [
      label && /* @__PURE__ */ jsx("span", { className: `${componentClassName}__label`, children: label }),
      text && /* @__PURE__ */ jsx("span", { className: `${componentClassName}__text`, children: text })
    ] })
  ] });
}
export {
  LinkBoxItem
};
//# sourceMappingURL=link-box-item.js.map
