import { Trans, useLingui } from "@lingui/react/macro"; import { Button, Popover, PopoverContent, PopoverTrigger } from "@rakazo/ui-web"; import { Gauge, LogOut, Settings } from "lucide-react"; /** The account button at the foot of the sidebar and its menu. */ export function UserMenu({ open, onOpenChange, initials, userName, onOpenSettings, onOpenUsage, onLogOut, }: { open: boolean; onOpenChange: (open: boolean) => void; initials: string; userName: string; onOpenSettings: () => void; onOpenUsage: () => void; onLogOut: () => void; }) { const { t } = useLingui(); return ( {initials} {userName} {open ? ( ) : null} ); }