import { useLogoutAction } from "./authActions.mjs";
import { clearStoredTenant } from "../storage/UnitySessionStorage.mjs";
import { clearStoredPath } from "../redirect/LocalRedirectUrlStorage.mjs";
import { clearStoredExternalPath } from "../redirect/ExternalRedirectUrlStorage.mjs";
import { c } from "react-compiler-runtime";
import "react";
//#region src/utilities/auth/useSingleLogout.ts
const useSingleLogout = () => {
	const $ = c(2);
	const logout = useLogoutAction();
	let t0;
	if ($[0] !== logout) {
		t0 = () => {
			clearStoredPath();
			clearStoredExternalPath();
			clearStoredTenant();
			logout();
		};
		$[0] = logout;
		$[1] = t0;
	} else t0 = $[1];
	return t0;
};
//#endregion
export { useSingleLogout };

//# sourceMappingURL=useSingleLogout.mjs.map