import React from 'react'; import { useHistory } from 'react-router-dom'; import { Button } from 'reactstrap'; import AuthContainer from '../../components/AuthContainer'; import { auth } from '../../config/firebase'; import logging from '../../config/logging'; import IPageProps from '../../interfaces/page'; const LogoutPage: React.FunctionComponent = props => { const history = useHistory(); const Logout = () => { auth.signOut() .then(() => history.push('/login')) .catch(error => logging.error(error)); } return (

Are you sure you want to logout?

); } export default LogoutPage;