import { CopyBlock, dracula } from "react-code-blocks"; import { Link } from "react-router-dom"; import { useAuthContext } from "../context/auth_context"; export const Home = () => { const { player, signedIn } = useAuthContext(); if (signedIn) { const sshConfig = `Host chessh Hostname ${process.env.REACT_APP_SSH_SERVER} Port ${process.env.REACT_APP_SSH_PORT} User ${player?.username} PubkeyAuthentication yes`; return ( <>

Welcome, {player?.username}


Getting Started

  1. Add a public key, or{" "} set a password.
  2. Insert the following block in your{" "} ssh config:
  3. Then, connect with:
); } return ( <>

Looks like you're not signed in 👀.

); };