import { NODE_TYPES } from '~/redux/node/constants';
import { LoginDialog } from '~/containers/dialogs/LoginDialog';
import { LoadingDialog } from '~/containers/dialogs/LoadingDialog';
import { TestDialog } from '~/containers/dialogs/TestDialog';
import { ProfileDialog } from '~/containers/dialogs/ProfileDialog';
import { RestoreRequestDialog } from '~/containers/dialogs/RestoreRequestDialog';
import { RestorePasswordDialog } from '~/containers/dialogs/RestorePasswordDialog';
import { DIALOGS } from '~/redux/modal/constants';
import { PhotoSwipe } from '~/containers/dialogs/PhotoSwipe';
import { LoginSocialRegisterDialog } from '~/containers/dialogs/LoginSocialRegisterDialog';
import { IDialogProps } from '~/redux/types';
import { FC } from 'react';

export const DIALOG_CONTENT: Record<string, FC<IDialogProps>> = {
  [DIALOGS.LOGIN]: LoginDialog,
  [DIALOGS.LOGIN_SOCIAL_REGISTER]: LoginSocialRegisterDialog,
  [DIALOGS.LOADING]: LoadingDialog,
  [DIALOGS.TEST]: TestDialog,
  [DIALOGS.PROFILE]: ProfileDialog,
  [DIALOGS.RESTORE_REQUEST]: RestoreRequestDialog,
  [DIALOGS.RESTORE_PASSWORD]: RestorePasswordDialog,
  [DIALOGS.PHOTOSWIPE]: PhotoSwipe,
};

export const NODE_EDITOR_DIALOGS = {
  [NODE_TYPES.IMAGE]: DIALOGS.EDITOR_IMAGE,
  [NODE_TYPES.TEXT]: DIALOGS.EDITOR_TEXT,
  [NODE_TYPES.VIDEO]: DIALOGS.EDITOR_VIDEO,
  [NODE_TYPES.AUDIO]: DIALOGS.EDITOR_AUDIO,
};
