diff --git a/frontend/src/components/basics/ErrorPopup.tsx b/frontend/src/components/basics/ErrorPopup.tsx new file mode 100644 index 0000000..1fc93ec --- /dev/null +++ b/frontend/src/components/basics/ErrorPopup.tsx @@ -0,0 +1,41 @@ +import {AlertCircle, X} from "lucide-react"; + +type ErrorPopupProps = { + message: string; + onClose: () => void; +}; + +/** + * ErrorPopup - Displays error messages in a modal overlay + */ +export default function ErrorPopup({message, onClose}: ErrorPopupProps) { + return ( +
{message}
+ +{passwordError}
} + > + )} + + {/* Change password link for existing user */} + {editedUser.id && ( +{passwordError}
} - > - )} - - {/* Change password link for existing user */} - {selectedUser.id && ( -Bitte einen Benutzer auswählen.
+Bitte einen Benutzer auswählen.
+