import { OverrideCSS as s } from "./accelbyte-widgets78.mjs";
import i from "classnames";
import r from "react";
import { Link as c } from "react-router-dom";
import "./accelbyte-widgets529.mjs";
var d = /* @__PURE__ */ ((a) => (a[a.TEXT = 0] = "TEXT", a[a.IMAGE = 1] = "IMAGE", a))(d || {});
const u = ({ logoType: a, logo: e, logoLink: t, className: m, style: n }) => a === 1 ? /* @__PURE__ */ r.createElement("div", { className: "header-logo headerLogoContainer" }, /* @__PURE__ */ r.createElement("img", { src: e, loading: "lazy", className: "headerLogoImg" })) : /* @__PURE__ */ r.createElement(
  "div",
  {
    className: i("header-logo headerLogoContainer title header-logo", m, s.TITLE_FONT, {
      normal: (e == null ? void 0 : e.length) <= 12,
      small: (e == null ? void 0 : e.length) > 12 && (e == null ? void 0 : e.length) <= 19,
      xsmall: (e == null ? void 0 : e.length) > 19 && (e == null ? void 0 : e.length) <= 25,
      xxsmall: (e == null ? void 0 : e.length) > 25
    }),
    style: n
  },
  t && /* @__PURE__ */ r.createElement(c, { to: t, className: "logoLink" }, e),
  !t && /* @__PURE__ */ r.createElement("span", { className: "logoLink" }, e)
);
export {
  u as HeaderLogo,
  d as LogoType
};
