import { signOut } from "next-auth/react";

export const signOutFunc = () => {
    signOut({
      callbackUrl: `/login?redirect_to=${
        window.location.pathname === "/logout"
          ? "/home"
          : window.location.pathname
      }`,
    });
  };