'use client'; import Dropdown from '@/components/ui/Dropdown'; import Button from '@/components/ui/Button'; import { PencilIcon, TrashIcon, KeyIcon, } from '@heroicons/react/24/outline'; import type { UserWithAvatar } from './types'; type UserRowActionsProps = { user: UserWithAvatar; currentUserId: string | null; onEdit: () => void; onChangePassword: () => void; onDelete: () => void; isDeleting?: boolean; isSavingPassword?: boolean; }; export default function UserRowActions({ user, currentUserId, onEdit, onChangePassword, onDelete, isDeleting = false, isSavingPassword = false, }: UserRowActionsProps) { const isCurrentUser = !!currentUserId && user.nwkennung === currentUserId; return (