import { useMemo as e } from "react";
function f(o, t) {
  const n = [
    ...t || []
  ];
  return t == null && typeof o != "function" && n.push(o), e(() => typeof o == "function" ? o() : o, n);
}
export {
  f as useOptionalFactory
};
//# sourceMappingURL=useOptionalFactory.js.map
