diff --git a/public/missing.webp b/public/missing.webp new file mode 100644 index 0000000..1d623b6 Binary files /dev/null and b/public/missing.webp differ diff --git a/src/app/components/header.tsx b/src/app/components/header.tsx index 41f351e..0d95c5a 100644 --- a/src/app/components/header.tsx +++ b/src/app/components/header.tsx @@ -1,9 +1,14 @@ import Link from "next/link"; -import SearchBar from "./search-bar"; - +import { getServerSession } from "next-auth"; import { Icon } from "@iconify/react"; -export default function Header() { +import SearchBar from "./search-bar"; +import ProfileOverview from "./profile-overview"; +import LogoutButton from "./logout-button"; + +export default async function Header() { + const session = await getServerSession(); + return (
@@ -12,22 +17,29 @@ export default function Header() { -
); diff --git a/src/app/components/logout-button.tsx b/src/app/components/logout-button.tsx new file mode 100644 index 0000000..b5d26b2 --- /dev/null +++ b/src/app/components/logout-button.tsx @@ -0,0 +1,14 @@ +"use client"; + +import { Icon } from "@iconify/react"; +import { signOut } from "next-auth/react"; + +export default function LogoutButton() { + return ( +
  • + +
  • + ); +} diff --git a/src/app/components/profile-overview.tsx b/src/app/components/profile-overview.tsx new file mode 100644 index 0000000..df44245 --- /dev/null +++ b/src/app/components/profile-overview.tsx @@ -0,0 +1,14 @@ +import { getServerSession } from "next-auth"; + +export default async function ProfileOverview() { + const session = await getServerSession(); + + return ( +
  • + +
  • + ); +}