import { useI18n as e } from "@feedmepos/mf-common";
import { useDialog as m } from "@feedmepos/ui-library";
function c(i, t) {
  const r = m(), { t: o } = e();
  function s() {
    i() ? r.open({
      title: o("portalCommon.dismiss.title"),
      message: o("portalCommon.dismiss.message"),
      zIndex: 200,
      primaryActions: {
        text: o("portalCommon.dismiss.primaryActions"),
        variant: "primary",
        close: !0
      },
      secondaryActions: {
        text: o("common.cancel"),
        variant: "tertiary",
        close: !0
      }
    }).onPrimary(() => {
      t();
    }) : t();
  }
  return s;
}
export {
  c as u
};
