import * as React from "react" import { Application } from "../../common/api" import { authenticate } from "../api" export interface HomeProps { app?: Application } export const Home: React.FunctionComponent = (props) => { React.useEffect(() => { authenticate().catch(() => undefined) }, []) return (
Welcome to code-server.
{props.app && !props.app.loaded ?
loading...
: undefined}
) }