import * as React from 'react'; import { Dispatch } from 'redux'; import SyncWizardDialog from '../../SyncWizard/Dialog'; import MasterPasswordDialog from '../../MasterPasswordDialog/Dialog'; import NoteLockUnlockDialog from '../../NoteLockUnlockDialog/Dialog'; import NoteLockMigrationDialog from '../../NoteLockMigrationDialog/Dialog'; import EditFolderDialog from '../../EditFolderDialog/Dialog'; import PdfViewer from '../../PdfViewer'; interface RegisteredDialogProps { themeId: number; key: string; dispatch: Dispatch; } interface RegisteredDialog { // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Each dialog requires different customProps; the render functions intentionally spread an open shape render: (props: RegisteredDialogProps, customProps: any)=> React.ReactNode; } const appDialogs: Record = { syncWizard: { // eslint-disable-next-line @typescript-eslint/no-explicit-any -- See RegisteredDialog.render render: (props: RegisteredDialogProps, customProps: any) => { return ; }, }, masterPassword: { // eslint-disable-next-line @typescript-eslint/no-explicit-any -- See RegisteredDialog.render render: (props: RegisteredDialogProps, customProps: any) => { return ; }, }, noteLockUnlock: { // eslint-disable-next-line @typescript-eslint/no-explicit-any -- See RegisteredDialog.render render: (props: RegisteredDialogProps, customProps: any) => { return ; }, }, noteLockMigration: { // eslint-disable-next-line @typescript-eslint/no-explicit-any -- See RegisteredDialog.render render: (props: RegisteredDialogProps, customProps: any) => { return ; }, }, editFolder: { // eslint-disable-next-line @typescript-eslint/no-explicit-any -- See RegisteredDialog.render render: (props: RegisteredDialogProps, customProps: any) => { return ; }, }, pdfViewer: { // eslint-disable-next-line @typescript-eslint/no-explicit-any -- See RegisteredDialog.render render: (props: RegisteredDialogProps, customProps: any) => { return ; }, }, }; export default appDialogs;