mirror of
https://github.com/20kaushik02/spotify-manager-web.git
synced 2025-12-06 07:54:07 +00:00
17 lines
432 B
TypeScript
17 lines
432 B
TypeScript
import React, { useEffect } from "react";
|
|
import styles from "./Logout.module.css";
|
|
import { authLogoutFullURL } from "../../api/paths";
|
|
|
|
const Logout = () => {
|
|
useEffect(() => {
|
|
const timeoutID = setTimeout(() => {
|
|
window.open(authLogoutFullURL, "_self");
|
|
}, 1000);
|
|
|
|
return () => clearTimeout(timeoutID);
|
|
}, []);
|
|
return <div className={styles.logout_wrapper}>See you soon!</div>;
|
|
};
|
|
|
|
export default Logout;
|