import * as u from "react";
function a(e, s) {
  return u.useMemo(() => {
    const t = !!e;
    return [t, Object.assign(Object.assign({}, s), t && typeof e == "object" ? e : null)];
  }, [e]);
}
export {
  a as default
};
