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