tubearchivist-frontend/app/components/Header.tsx

21 lines
448 B
TypeScript
Raw Permalink Normal View History

import dynamic from "next/dynamic";
2022-04-03 00:26:42 +00:00
const Header = ({ authData }) => {
const { session, status } = authData;
return (
<>
<h1>Name: {session?.user?.name}</h1>
<h1>Status: {status}</h1>
<h1>Token: {session?.ta_token?.token}</h1>
<h1>User ID: {session?.ta_token?.user_id}</h1>
</>
);
};
export const DynamicHeader = dynamic(() => import("../components/Header"), {
suspense: true,
});
2022-04-03 00:26:42 +00:00
export default Header;