"use client"; type Props = { username?: string; isAdmin?: boolean; }; export function AdminHeader({ username, isAdmin = false }: Props) { async function logout() { await fetch("/api/auth/logout", { method: "POST" }); window.location.href = "/login"; } return (

Kick Kings Admin Dashboard

{username ? (

Signed in as{" "} {username} {isAdmin ? " ยท admin" : null}

) : null}
); }