import { ref as i } from "vue";
const r = (t, e) => {
  const o = i(!1), s = i(!1), l = () => {
    s.value = !0;
  }, n = () => {
    s.value = !1, o.value = !1;
  };
  return {
    // state
    isOpenMenu: o,
    buttonMenuVisible: s,
    // actions
    showMenu: l,
    hideMenu: n,
    clickAction: (c) => {
      n(), e("action", { messageId: t.messageId, type: "menu", ...c });
    },
    viewsAction: () => {
      n(), e("action", { messageId: t.messageId, type: "views" });
    },
    handleClickReplied: (c) => {
      e("reply", c);
    }
  };
};
export {
  r as useMessageActions
};
