import { createElementBlock as l, createCommentVNode as r, unref as t, openBlock as a, withModifiers as s, normalizeStyle as c, normalizeClass as m } from "vue";
import { useUser as u, dictRecord as n } from "./composables-BAZQlC3e.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: i } = u();
    return (f, o) => t(i).is ? (a(), l("div", {
      key: 0,
      class: m(["i-la-link link", { active: t(n)[e.type] == e.hash }]),
      style: c({ color: e.my ? "red" : "" }),
      onClick: o[0] || (o[0] = s((h) => t(n)[e.type] = t(n)[e.type] == e.hash ? null : e.hash, ["stop", "prevent"]))
    }, null, 6)) : r("", !0);
  }
}, B = /* @__PURE__ */ d(y, [["__scopeId", "data-v-21b7a062"]]);
export {
  B as default
};
//# sourceMappingURL=DictLinkButton-CQ_utoRd.js.map
