import React, { FunctionComponent, useEffect } from "react";
import { saveLoggedIn } from "../hooks/useLoggedIn";
import { Config } from "../config";

export interface LogoutPageProps {
  
}

export const LogoutPage: FunctionComponent<LogoutPageProps> = () => {
  useEffect(() => {
    saveLoggedIn(false);
    window.location.replace(Config.logoutURL);
  }, []);
  return null;
};