import { computed as l, unref as m } from "vue";
function p({
  showMenu: u,
  activeChannelType: e,
  emptyChannelsPlaceholder: a,
  getAvailableChannels: o,
  organizedContactAttributes: s
}) {
  const r = l(() => m(a) ?? {}), t = l(() => !e.value || !r.value ? null : r.value[e.value] || null), h = l(() => {
    if (!u.value || !e.value || !t.value)
      return !1;
    const f = o(e.value).length === 0, n = s.value[e.value], i = !n || n.length === 0;
    return !!(f || i);
  });
  return {
    emptyChannelsPlaceholderText: t,
    shouldShowEmptyChannelsPlaceholder: h
  };
}
export {
  p as useCommunicationPlaceholder
};
