import * as React from 'react' import { Button, Dialog, TextField } from "mdui" import useEventListener from "../useEventListener.ts" import { checkApiSuccessOrSncakbar } from "../snackbar.ts" import Client from "../../api/Client.ts" import * as CryptoJS from 'crypto-js' import data from "../../Data.ts"; interface Refs { loginInputAccountRef: React.MutableRefObject loginInputPasswordRef: React.MutableRefObject loginDialogRef: React.MutableRefObject registerDialogRef: React.MutableRefObject } export default function LoginDialog({ loginInputAccountRef, loginInputPasswordRef, loginDialogRef, registerDialogRef }: Refs) { const loginButtonRef: React.MutableRefObject