import { useModalContext as r } from "../Modal/Modal.js";
import { useState as d, useEffect as c } from "../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js";
import { boolOrFalse as n } from "../../../utils/value/bool.js";
const f = {
  payout: "payouts.details.title"
}, p = ({ hideTitle: e, type: o }) => {
  const { withinModal: t } = r(), [i, s] = d(!1), a = i || n(e), l = f[o];
  return c(() => {
    s(t);
  }, [t]), { hideTitle: a, titleKey: l };
};
export {
  f as TITLES_BY_TYPE,
  p as default,
  p as useDataOverviewDetailsTitle
};
