import { UserDispatchContext } from "./internal.mjs";
import { c } from "react-compiler-runtime";
import { useContext } from "react";
//#region src/utilities/auth/users.js
function useUserActions() {
	const $ = c(4);
	const actions = useContext(UserDispatchContext);
	let t0;
	if ($[0] !== actions) {
		t0 = (tenantId) => actions?.changeTenant?.(tenantId);
		$[0] = actions;
		$[1] = t0;
	} else t0 = $[1];
	const changeTenant = t0;
	let t1;
	if ($[2] !== changeTenant) {
		t1 = { changeTenant };
		$[2] = changeTenant;
		$[3] = t1;
	} else t1 = $[3];
	return t1;
}
//#endregion
export { useUserActions };

//# sourceMappingURL=users.mjs.map