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