import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" import { SidebarMenuButton } from "@/components/ui/sidebar" import { UserProfile } from "@/lib/auth" import { authClient } from "@/lib/auth-client" import { LogOut, MoreVertical, User } from "lucide-react" import Link from "next/link" import { redirect } from "next/navigation" export default function SidebarUser({ profile, isSelfHosted }: { profile: UserProfile; isSelfHosted: boolean }) { const signOut = async () => { await authClient.signOut({}) redirect("/") } return ( {profile.name || profile.email} {/* */} Profile Settings {/* Your Subscription */} {!isSelfHosted && ( <> Log out )} ) }