import { useUser as o, unref as t, openBlock as a, createElementBlock as r, normalizeClass as s, dictRecord as n, normalizeStyle as c, withModifiers as u, createCommentVNode as m } from "./composables-Ci32s3jE.js";
import { _export_sfc as d } from "./_plugin-vue_export-helper-DueaC3du.js";
const y = {
  __name: "DictLinkButton",
  props: {
    type: {
      type: String,
      default: ""
    },
    hash: {
      type: String,
      default: ""
    },
    my: Boolean
  },
  setup(e) {
    const { user: l } = o();
    return (f, i) => t(l).is ? (a(), r("div", {
      key: 0,
      class: s(["i-la-link link", { active: t(n)[e.type] == e.hash }]),
      style: c({ color: e.my ? "red" : "" }),
      onClick: i[0] || (i[0] = u((h) => t(n)[e.type] = t(n)[e.type] == e.hash ? null : e.hash, ["stop", "prevent"]))
    }, null, 6)) : m("", !0);
  }
}, v = /* @__PURE__ */ d(y, [["__scopeId", "data-v-21b7a062"]]);
export {
  v as default
};
//# sourceMappingURL=DictLinkButton-ycxeuLJt.js.map
