import React from 'react'; import { Shield, Trash2, User, Wand2 } from 'lucide-react'; import type { i18n as I18nType, TFunction } from 'i18next'; import type { NdLibrary, NdUser } from '../../../api/navidromeAdmin'; import { formatLastSeen } from '../../../utils/userMgmtHelpers'; interface Props { user: NdUser; libraries: NdLibrary[]; isSelf: boolean; busy: boolean; onEdit: (u: NdUser) => void; onRequestDelete: (u: NdUser) => void; onRequestMagic: (u: NdUser) => void; t: TFunction; i18n: I18nType; } /** * Single user list row in the admin user management section. * * Whole row is keyboard-activatable as a button (Enter / Space → edit * mode) since the click target is a `
` rather than a real button — * we need nested action buttons (magic string, delete) and a ` )} {lastSeen}
); }