import React, { useEffect } from "react"; import { Link, useLocation } from "react-router-dom"; import { ErrorMessage } from "./Input"; import styles from "./FullScreenView.module.css"; import { Header, HeaderLogo, LeftNav, RightNav } from "./Header"; export function FullScreenView({ children }) { return (
{children}
); } export function ErrorView({ error }) { const location = useLocation(); useEffect(() => { console.error(error); }, [error]); return (

Error

{error.message} {location.pathname !== "/" && ( Return to home screen )}
); } export function LoadingView() { return (

Loading...

); }