This is not a commit

This commit is contained in:
2022-02-22 15:01:23 +01:00
parent e4478d7841
commit 2cdbe28b6e
3 changed files with 25 additions and 14 deletions

View File

@@ -0,0 +1,16 @@
import Link from "next/link";
import { Pane, Button } from "evergreen-ui";
import { signOut } from "next-auth/react";
export default function userTop({session}) {
return (
<Pane display="flex">
<h3 className="px-3 py-2 place-self-end">
Zalogowano jako {session.user.email}
</h3>
<Button onClick={() => signOut()} className="place-self-end">
Wyloguj
</Button>
</Pane>
);
}