import { FunctionComponent } from "react"; import { useNextGraphAuth } from "./reactMethods"; export const Header: FunctionComponent = () => { const { session, login, logout } = useNextGraphAuth(); return (
{session.sessionId ? ( // If the session is logged in
You are logged in. {/* Log out */}
) : ( // If the session is not logged in <>

Welcome to the mini-LinkedIn demo

An example use of Social Queries with NextGraph

Please Log in
)}
); };