import React, { useCallback, useEffect } from "react"; import { useLocation } from "react-router-dom"; import styles from "./FullScreenView.module.css"; import { Header, HeaderLogo, LeftNav, RightNav } from "./Header"; import classNames from "classnames"; import { LinkButton, Button } from "./button"; export function FullScreenView({ className, children }) { return (
{children}
); } export function ErrorView({ error }) { const location = useLocation(); useEffect(() => { console.error(error); }, [error]); const onReload = useCallback(() => { window.location = "/"; }, []); return (

Error

{error.message}

{location.pathname === "/" ? ( ) : ( Return to home screen )}
); } export function LoadingView() { return (

Loading...

); }