---
import { UserCard } from "@/components/user-card";
import RootLayout from "@/layouts/root-layout.astro";
import { auth } from "@/auth";

const activeSessions = await auth.api
	.listSessions({
		headers: Astro.request.headers,
	})
	.catch((e) => {
		return [];
	});
const session = await auth.api.getSession({
	headers: Astro.request.headers,
});
---

<RootLayout>
      <UserCard  activeSessions={activeSessions} initialSession={session} client:only  />
</RootLayout>
