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