import { LogOutIcon } from "lucide-react"; import { getCurrentUser } from "@/data/auth"; import { logout } from "@/app/(auth)/actions"; import { Button } from "@/components/ui/button"; export async function SidebarUser() { const user = await getCurrentUser(); return (

{user.name}

{user.username && (

@{user.username}

)}
); }