import { getSession } from "@/lib/auth/session"; import { Agent } from "@atproto/api"; import Image from "next/image"; import Link from "next/link"; import { redirect } from "next/navigation"; const Header = async () => { const session = await getSession(); if (!session) { redirect("/"); } const agent = new Agent(session); let profile; try { const response = await agent.getProfile({ actor: session.did }); profile = response.data; } catch (error) { console.error("Error loading profile:", error); } return (

bambü

{`Profile
); }; export default Header;