Put everything in its right place

This commit is contained in:
2022-02-24 14:38:17 +01:00
parent 8777be462d
commit e31ebc1799
9 changed files with 20 additions and 24 deletions

View File

@@ -0,0 +1,15 @@
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>
);
}