import { For, Show } from "solid-js"; import Dialog from "~/components/dialog/Dialog"; import type { CourseKind } from "~/service/wk"; type HostOption = { label: string; host: string; }; type StatusOption = { label: string; value: CourseKind; }; export type LoginForm = { username: string; password: string; token: string; status: CourseKind; host: string; }; interface AddAccountDialogProps { open: () => boolean; onClose: () => void; onSubmit: () => void; isSubmitting: boolean; errorMessage: string; form: LoginForm; statusOptions: StatusOption[]; hostOptions: HostOption[]; updateForm: (key: K, value: LoginForm[K]) => void; } const AddAccountDialog = (props: AddAccountDialogProps) => { return ( } >